Questions tagged as 'python-3.x'

0
answers

Are the Attributes "Necessary"?

Programmers, I have a question emerging, but quite elementary. In OOP, we can assign a series of attributes to our classes to mold objects to convenience, understanding this, is it necessary to create variables separately? Or is it enough to ass...
asked by 15.07.2018 / 00:12
0
answers

How to print from python to a ticket printer

I have been researching how to send a text file to a USB ticket printer, using Python and PyQt, however I have not managed to find anything useful for Windows in this case. I hope someone can support me with a code to perform this task THA...
asked by 09.07.2018 / 05:56
0
answers

Error Downloading Share Share in mega

Hi, I'm installing the necessary packages to work with sql server but Microsoft Visual C ++ Build Tools asks me to download it from this address link but when I try to access it tells me that I am restricted, I can share visual cpp build tools...
asked by 10.07.2018 / 18:08
0
answers

error when using usb, core

Good morning I'm trying to get the USB stick readers that I have installed on my PC. but it throws me the following error: Traceback (most recent call last): File "C:\Users\Angel\Desktop\pos.py", line 2, in <module> lect...
asked by 09.07.2018 / 16:26
0
answers

Problems with Selenium + Python (My script detected as malware in Chrome and selenium.webdriver 'has no attribute' FireFox)

I'm trying Selenium for the first time. I've only written four lines of code and I already have problems: First I tried to work with Chrome from selenium import webdriver from selenium.webdriver.chrome.options import Options _chrome_option...
asked by 07.07.2018 / 13:29
1
answer

change parameters to button in wxpython

Hello, I have a question about how to change parameters to a button in wxpython. I explain: I have a window with a drop-down list with some colors and I have a button below that says "OK" The idea is that the user select some color from the l...
asked by 07.07.2018 / 23:35
1
answer

Any way to get the elements of a table as a matrix? Selenium + Python

I am getting the cells of a table this way with Selenium. What I'm getting is a list with the value of each cell. def seleccionar_productos(driver): rows = driver.find_elements_by_xpath("//table[@id='tabla']/tbody/tr") cells = driver....
asked by 07.07.2018 / 22:25
0
answers

Problems when uninstalling a python package

Very good people, today I had created a package in Python to do tests and such, but when naming the package I put name = "paquetecálculos" in setup.py , as shown in the image below.
asked by 11.07.2018 / 15:27
0
answers

reorder formset Django

I have a problem editing a formset that I am using to create several forms and link them to the same object. Models class Tallaje(models.Model): id = models.BigAutoField(primary_key = True) nombre = models.CharField(max_length = 20,...
asked by 11.07.2018 / 12:21
0
answers

Data entry form with Django

Someone can help me, I have the following model: class Citas2(models.Model): laboratorio = models.CharField(max_length=10, default=LABORATORIO_1, null=True) paciente = models.ForeignKey(Pacientes, on_delete=models.CASCADE) doctor =...
asked by 12.07.2018 / 19:20