Questions tagged as 'python'

0
answers

AttributeError: 'StringVar' object has no attribute 'curselection'

Good morning. I have an error when selecting my Listbox. I do not know what I'm doing wrong if everything is identical to another code where it works for me. What I'm trying to do is show a table in my BD in a Listbox and that when selecting an...
asked by 12.05.2018 / 13:42
0
answers

Paint DataFrame in python within a Frame

Hello, good, my question is this: I have a frame in my desktop application in python and I want to show inside a table or a graph with the Pandas library starting from a DataFrame object. Everything I have seen on the internet prints the cont...
asked by 12.05.2018 / 10:01
0
answers

Link bi-directionally the values of Slider and SpinBox controls?

I am trying to link two common controls in graphical interfaces, a Slider and a SpinBox. They belong to a library in Python, specifies for the Blackmagic Fusion program. The thing is, the way I'm trying seems to be overwriting the control of the...
asked by 12.05.2018 / 10:16
1
answer

How to connect slots in PyQt5 from another class

I have generated a file gen_Principal.py from Principal.ui and since it should not be modified I created another class MyClass to connect the signals and slots there. I want to open a window when I click on the menu. Currently...
asked by 10.05.2018 / 12:57
1
answer

Create an executable from a python script?

I already asked a similar question but it did not end up giving results using cx_freeze. So what would be the best way to create an executable from a python script? Use python 3.6.5 (32 bits) The imports: # -*- coding: utf-8 -* import pyga...
asked by 01.05.2018 / 00:31
0
answers

Error saved from Jupyter Notebook

I am using JN with Python 3 and it has started to give me this error with the bran and autochecking:    Notebook changed       The notebook file has changed on disk since the last time we opened   saved it. Do you want to overwrite the file...
asked by 01.05.2018 / 22:14
1
answer

Modify data from a listbox in python with tkinter using postgresql ... mouseEvent

I have an interface where I show a list of data from different clients with a Listbox. I was wondering if it is possible to select a data from there and that can be modified directly? those are the data that I have in postgresql a...
asked by 08.05.2018 / 20:27
0
answers

Render in Python Framework Tornado

I'm trying to return data from a function and render to be shown in the front-end, I'm using the tornado framework. equipos = [x[0] for x in run_query("SELECT mac FROM equipos WHERE estado = 1")] for equipo in equipos: if self.current_use...
asked by 08.05.2018 / 21:28
0
answers

PYTHON - struct.error: unpack requires a buffer of 17665190 bytes

I have generated an audio graphic representation script, however, it throws me the following error: Here I leave my code: import wave import struct import sys import numpy as np from math import sqrt import matplotlib matplotlib.use('...
asked by 01.05.2018 / 17:19
1
answer

pyqt 5 popup button stop button

I have the following: when executing the file main.py import sys from PyQt5.QtWidgets import QApplication, QMainWindow, QDialog from PyQt5 import uic import subvent class Principal(QMainWindow): def __init__(self): QMai...
asked by 11.05.2018 / 13:36