Questions tagged as 'python'

0
answers

Upload file via network with Python

Server #!/usr/bin/env python #-*-coding:utf-8;-*- import socket import os host = "127.0.0.1" port = 8080 addr = (host, port) skt = socket.socket(socket.AF_INET, socket.SOCK_STREAM) skt.bind(addr) skt.listen(1) print "||------------------------...
asked by 23.08.2018 / 18:54
0
answers

Plotting graphs with functions in 3D matplotlib

Good evening everyone! I need to plot an area chart where the height z varies according to any function and its interval depends on the starting point and the end point reported. I found the example below on the internet but I do not know how to...
asked by 10.09.2018 / 00:00
2
answers

Python python - How to check if a "tuple" of elements of two Series is contained in a set?

I have a "set" of "tuples" as follows set = {(2, 3), (2, 4), (5, 5)} My DataFrame looks like this: df = pd.DataFrame( {'one': [1,2,4,1], 'two' : [5,3,2,2]}) I want to check if in each line the "tuple" formed by the elements of the two se...
asked by 15.07.2018 / 01:57
1
answer

How to perform communication between Threads and PySide Qt?

The graphical user interface window created in PySide runs normally following the normal program flow. The program's true python script runs on a Thread in parallel. But this thread script needs to send the logs to the QPlainTextEdit of the grap...
asked by 17.07.2018 / 17:59
1
answer

Django + Python how to update a table item

Speak people, I have a registration flow where in a first step except the student and then the data of the responsible, but after that I need the student to make a description and that description has to be inserted in the respective student, ho...
asked by 17.08.2018 / 15:18
0
answers

Change screen by python file in kivy

I need to change the screen inside the .py file, I can not do that for .kv because I have to use ButtonBehavior and it does not work on .kv . from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.u...
asked by 12.07.2018 / 07:44
1
answer

Json by the URL in python?

Good afternoon! I have a script in python that needs to pass a Json via URL to an application, which validates through the mac address. With a lot of research, I've been testing the code below, even to get an understanding of what's going on. Fo...
asked by 05.07.2018 / 21:43
0
answers

python sigint and ctrl c have different effects

Hello, I need to run an executable made in c, this executable executes operations on a board and writes to a file, the problem is that the write event occurs when the program receives a ctrl + c. I tried to send a sigint (as far as I know they ar...
asked by 06.07.2018 / 01:25
1
answer

How do I access the name of a class instance so I can use it later?

I have a question about how to use the "NAME" of a class instance. If I declare it directly: Sala_10 = Sala("Sala_10") works fine. I can use Sala_10.método() , but I would like to instantiate the rooms through a function, called a...
asked by 23.07.2018 / 22:54
1
answer

How to get the Primary and Secondary DNS of Windows using Python?

My Python program to run needs the following machine information: DNS Primario. DNS Secundário. How can I get this information using Python?     
asked by 24.07.2018 / 02:37