Questions tagged as 'python-3.x'

0
answers

PyQt5 apply QgraphicsBlurEffect.performancehint and change the position of the DropShadow effect

Good evening. I am working on an application with PyQt. A colleague shared the following instruction self.shadow.BlurHint(QGraphicsBlurEffect.PerformanceHint) . This is to improve the performance of the application when executing the...
asked by 13.03.2018 / 06:53
0
answers

Python 3: import dll with ctypes or numpy.ctypeslib

I want to work with the Autodesk Robot Structural Analysis API to extract information. With IronPython I import the references from a library dll in the following way: import clr clr.AddReferenceToFileAndPath(‘midirectorio\Intero...
asked by 13.02.2018 / 12:13
1
answer

floating with many decimals in an array

I have a problem and that is that I have a program in python where I do calculations of different types, the fact is that one of these calculations gives me as a result a float with 16 decimals and when I store this number in an array I do not I...
asked by 12.02.2018 / 08:26
2
answers

Open file with sudo in python

I need to create a file and write it in root mode. I tried with f = open("hola.log", 'w+') but when I run it I get: PermissionError: [Errno 13] Permission denied I'm working with python3. Any ideas?     
asked by 09.02.2018 / 01:06
0
answers

Pass data from Django to PHP

Good morning. I am trying to connect an application in Django to a PHP plugin in a payment gateway. My call is very simple: return redirect('http://localhost/pagos/pago.php'{'pedido':pedido.id,'tarjeta':tarjeta}) But the PHP plugin do...
asked by 01.02.2018 / 13:17
1
answer

Create archives .log with Selenium results

I will try to explain as clearly as possible, the situation is this: I have the following project structure: The directory where these two folders are located is code. Inside ISV1 / testing I have the .py scripts of the tests I want...
asked by 29.01.2018 / 22:58
0
answers

Accept X-CSRFTOKEN XAMPP Django

Good morning: I am trying to connect an application in Django with a service in PHP with an xampp as a server. I am sending you the data from a View in Django with a: return redirect('enlace',{'parametros':parametros}) This generates thi...
asked by 29.01.2018 / 12:19
0
answers

Make calculations with data from other tables

Help please, I have three tables (Period, News and Liquidation) with the following information, the tables are configured as classes in ORM Sqlalchemy: > Periodo: # con los campos id_periodo(int)(pk) num_periodo (int) nombre_periodo(varcha...
asked by 26.01.2018 / 20:50
1
answer

Move window without borders

Good afternoon community. I would like someone to help me with the following code: import tkinter as tk root = tk.Tk() root.overrideredirect(True) w, h = 800, 500 canvas = tk.Canvas(root, width=w, height=h, highlightthickness=0) canvas.pac...
asked by 30.01.2018 / 18:44
0
answers

read a specific area of a pdf with python

Someone knows how I can read a specific area of a PDF with python. I am currently using PyPDF to read and extract the text but if in the pdf there are no separations the text runs out and I can not do a clean regex. I hope you can help me....
asked by 24.01.2018 / 23:24