Questions tagged as 'python'

0
answers

Library errors when using IDE Thonny

I'm working with Python, I have run and I miss these errors. I know they are libraries that I need to install. Can anyone tell me which ones I need to install? Or what is the problem?    Traceback (most recent call last): File   "C: \ User...
asked by 30.11.2017 / 02:24
1
answer

Write dictionary in text file

Hello, I am trying to write a dictionary, with name and phone data, in a text file and I can not achieve it. My dictionary is of the type: agenda = {"Juan": 14253, "Mariano": 24875, "Marcos": 65232} and what I did was this: agenda={"Juan":1425...
asked by 10.12.2017 / 20:13
0
answers

__main __. ArbolBinario object at 0x7f3138321cc0

How about, I'm deifying a new class for binary trees and I get the error <__main__.ArbolBinario object at 0x7f3138321cc0> when I call the mirror function. 'this is my code: class ArbolBinario(object): """Se implementa un...
asked by 26.11.2017 / 03:51
1
answer

Xpath and attributes of the father

I'm scraping a web with the following structure <tbody> <tr class='Leaguestitle'>...<\tr> <tr id='tr1_abababa'>..<\tr> <tr id='tr2_abababa'>..<\tr> . . <tr id='tr1_acacaca'>..&l...
asked by 16.12.2017 / 22:08
0
answers

Inheritance in Python

I am learning python and I am practicing the inheritance in the classes I can not manage to make the code when the motoElecrica class uses the method doingWilly without having used the "start" method to show me a message that first I must start...
asked by 16.12.2017 / 03:19
0
answers

Non-zero exit code (1) Python PyCharm

I am installing the MySQLdb Module from the PyCharm and it throws the error Non-zero exit code (1) . Does anyone know how I can fix it? Do I have to update the version of PIP ?     
asked by 27.11.2017 / 16:52
1
answer

I want to validate focus out in a QtableWidgetItem in PyQt 5?

I am occupying a QtableWidget with PyQt 5 and I would like to know if there is a method that allows me to validate when I stopped editing a QtableWidgetItem . Thank you very much!     
asked by 27.11.2017 / 20:14
1
answer

How can I add a value to a database from sqlalchemy python?

Good afternoon friends of stackoverflow I have a question. My doubt is that I want to enter a value to a field already registered in a database by means of sqlalchemy python using flask as a microframework here is my code example. @app.rout...
asked by 27.11.2017 / 19:10
1
answer

TKINTER IN PYTHON

Hoola give me a file called notes.txt the file looks like this: NOTAS;EJERCICIO 1;EJERCICIO 2;EJERCICIO 3;EJERCICIO 4;EJERCICIO AAAA;2;4;7;2;6;4 BBBB;3;5;5;4;5;5 CCCC;4;6;5;5;4;6 DDDD;5;7;5;6;4;4 I need to Open and upload the file notes.txt...
asked by 27.11.2017 / 22:40
0
answers

Can I have PyQt4 and PyQt5 installed at the same time?

I have PyQt5 installed on my computer, but many projects tell me that it is better to develop them with PyQt4, I am an intermediate apprentice, and I would like to know if I can install PyQt4 without losing PyQt5. Thanks in advance.     
asked by 02.12.2017 / 20:22