Questions tagged as 'python'

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 / 07:26
0
answers

Python scripts in arcgis

I would like to know if there is a script in python that, instead of getting into layers properties, I can do it with the script and just add the variable (number)     
asked by 09.02.2018 / 01:14
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 / 00:06
0
answers

Configure the manage.py and settings.py files correctly in a web project

I am developing a scientific web project in django and although my web works, I must have something wrong configured in the manage.py and settings.py files. If you can help me and tell me what changes I should make in these files, it would be ve...
asked by 05.02.2018 / 10:39
0
answers

get label variables tkinter python

I have the following code, and I want to get the string with the value of the file to use in the function: def openBioActFile(): finestra.openfile = tk.filedialog.askopenfilename(initialdir = cwd,title = "Select file",filetypes = (("text file...
asked by 05.02.2018 / 09:17
0
answers

include args from the setuptools in the python setup.py

Best regards, do any of you know how to include args from the setuptools in the python setup.py to perform the presintellation of dependent libraries? I appreciate your response or where to consult it.     
asked by 19.02.2018 / 23:45
0
answers

Bug Update Django Formsets

I am trying to modify a sale in which I have this view: views.py class VentaUpdate(UpdateView): model = Venta template_name = 'venta/venta_form.html' form_class = VentaForm success_url = reverse_lazy('venta:ventas_listar') def get_context_...
asked by 05.02.2018 / 17:27
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 / 12:17
0
answers

Multiprocesses, Threads / threads in pyqt4?

I am trying to enter data in a QListWidget in pyqt4, by means of the keyboard entry raw_input I am entering 5 data but I only want that in the table I get 3, that I already have it, but When I enter the first data round, the GUI is just opened...
asked by 03.02.2018 / 18:41
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 / 21:58