Questions tagged as 'python'

0
answers

Python sentences

I have this problem: a = 'thissentencemakesperfectsense' it's a sentence and I need to divide the words in such a way that it stays that way. this sentence makes perfect sense I have tried with dictionaries but it is in particular cases, I...
asked by 25.01.2018 / 20:14
1
answer

Problems saving an image with PIL

I can not save my image when I click on the guardar menu. I searched and what I found was the function: Image.save . This is my code: from tkinter import * from tkinter import Tk from tkinter import PhotoImage from tkinter imp...
asked by 17.01.2018 / 18:21
0
answers

Top level window is stunned in Python TKinter 2.7

I need support. In the application that I am developing I put a button to open a top level window with the fields that my table has MySQL and so modify any record already created, in turn I want that top level appears a drop-down menu to selec...
asked by 16.01.2018 / 15:09
0
answers

how to place video background or video background in pyqt5? (python3.6)

import sys from PyQt5.QtWidgets import QApplication, QMainWindow,QDialog from PyQt5.QtGui import QPalette, QBrush, QPixmap,QImage from PyQt5 import uic import PIL from PIL import * from PIL import ImageQt import imageio import time video_name = "...
asked by 12.01.2018 / 03:49
0
answers

UnicodedecodeError ipython

Good, I'm trying to graph some data from an experiment and the terminal has not stopped giving me dislikes. I put the code here: from matplotlib import * squares1=[0.0,0.004,0.006,0.009,0.012,0.016,0.018,0.021] #desplazamiento eje x en metros...
asked by 12.01.2018 / 01:57
1
answer

Daughter window widgets created with Toplevel are displayed in the main window

I need help with Python Tkinter 2.7 since I am developing a small graphical interface to manage a database in mysql. What I want is that by pressing a button, it opens a new window Toplevel that already contains labels and Entrys. I tr...
asked by 10.01.2018 / 22:33
1
answer

How to make a multiprocess server? -Server-multiprocessing-

I need a server that can respond to several post requests that are requested and return your respective response. My code represents a simple server but only makes one request at a time. I am new using multiprocessing, I do not know how to im...
asked by 18.01.2018 / 20:55
0
answers

"No module named numpy" and "numpy.core.multiarray failed to import"

I already installed numpy on my pc, but in the choregraphe I'm programming nao, and I get the errors "numpy.core.multiarray failed to import" and "No module named numpy" as I solve those errors,     
asked by 11.01.2018 / 02:15
2
answers

Include dependencies in pyinstaller

I am creating an application in python and I need to compile it in a windows executable, I am using pyinstaller for that by: C:\usuario>pyinstaller script.py This generates a folder with the dependencies and the executable....
asked by 10.01.2018 / 22:58
0
answers

How to change in Python Pandas the type of numerical data in one or more columns?

Using Python 3.4 and pandas = 0.19.2, perform a script in which you change the data type to a data column in the dataFrame. Using this version of pandas had a line of code with pd.lib.infer_dtype In my previous question I was recommended to...
asked by 19.01.2018 / 00:21