Questions tagged as 'python-3.x'

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
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
0
answers

Connectivity between 2 Raspberry pi through Local Network

How can I connect two raspberry pi over an ethernet local network, for example send text from one to the other over the ethernet local network.     
asked by 24.07.2018 / 09:48
0
answers

Define sections in a color recognition program

I'm working on a project, which will be my CBT next year. I'm learning from the Python language, and for the time being I've had some progress. I was reading about computer vision, but I still have some doubts. I was able to formalize a program...
asked by 28.07.2018 / 01:54
1
answer

How to put the xticks equal to this figure

I'm doing a Python course for finance. Hence in an exercise you are asked to plot a chart using the DataFrames. So far so good, I have managed to do everything right, but my xticks do not match those of the result! I basically have to get thi...
asked by 28.06.2018 / 22:33
1
answer

Crossing lists in python

Good night, I'm breaking my head to find the error, is the following I'm crossing this list of binary numbers, the first crossing is working but the second is getting the end of the first, to exemplify this is my my list of entry: SELECTED PO...
asked by 17.06.2018 / 20:55
2
answers

How to do the input () stop after the space instead of the line break in Python3

I want to capture several numbers in this form: 2 4 5 3 5 0 4 As undefined number of numbers and without using an auxiliary list, I want to use only one variable for _ in range(0,n): num = int(input()) I only know how to create li...
asked by 18.06.2018 / 01:52
1
answer

Doubt about pycharm

I typed exactly this: import math num = float(input('Digite um numero: ')) print('A parte inteira do numero {} é {}.'.format(num, math.trunc(num))) However, when running, this only appears: Digite um numero: 9.8 Process finished with exi...
asked by 03.07.2018 / 20:44
0
answers

make a while loop or restart the program in tkinter with a new question

I would like to know how to do when I click the answer button, restart the program with a new account and optimize the code? from tkinter import* from random import randrange janela=Tk() janela.geometry('100x80') janela.resizable(0,0) a=(ran...
asked by 09.06.2018 / 00:25
0
answers

Sniffer with Python only get multicast address 224.0.0.1

Hi I'm trying to make a sniffer with Python and when I use my smarthphone it only gets the multicast address 224.0.0.1. How do I get the ip of the site I'm visiting on my smartphone? On my laptop he catches everything. My network interface is in...
asked by 18.06.2018 / 23:34