Questions tagged as 'python'

1
answer

accept a website privacy policy

I need to click on a link, specifically in Accept, of an HTML, but the problem I have is that I call (use get of selenium) to the web and that HTML where being accepted does not find it (or I do not know if I do it badly), but I think it is an "...
asked by 19.07.2018 / 23:07
0
answers

Replace words from one column in another column in a text

I am trying to replace words from one column in another column in a text: Text:    While these delays were noted, active nuclear power plants have been building individual warehouses within their facilities to store the dangerous spent f...
asked by 18.07.2018 / 15:38
0
answers

How can I know if there is already a number on a list?

I want to create a program in which you have to guess a "magic number", but I want to store the numbers entered in a list to know if you enter the number again and print a message that is: "The number already had been admitted ", something like...
asked by 18.07.2018 / 18:42
0
answers

Error using CX_FREEZE with Tkinter application

I'm creating a simple tool that makes use of libraries like tkinter, numpy, matplotlib, etc ... and I have problems when packing everything in an EXE with Cx_freeze I leave my setup.py I use to package it. When I do, I generate the EXE without a...
asked by 17.07.2018 / 07:41
1
answer

Python. Problem with tkinter notebook frame

first of all say that I am new to python. I'm doing an application in python, which uses the ttk. I would like to change the background color of the application (not the gray that comes out by default) but I have tried everything and there is...
asked by 24.07.2018 / 17:56
1
answer

Store the id of the object in a manytomany field

I have a user model in django with a field: wallets = models.ManyToManyField(Wallet) and a Wallet object with other fields. I currently store the names of the Wallets objects assigned to the user in the user's wallets field. How can I store...
asked by 15.07.2018 / 13:26
0
answers

How to insert id in csv reading with DJango

I have the following question, in which way I can insert an id that I have obtained from another table, in reading a .csv file, which I am importing into my database with the django-import-export library. I have the code in the following way...
asked by 16.07.2018 / 15:57
1
answer

Application created with tkinter and cx_freeze opens and closes immediately

I have an application created with tkinter, python3.6 and packaged with cx_freeze with the following file setup.py: import os from cx_Freeze import setup, Executable os.environ['TCL_LIBRARY'] = "C:\Users\Alfredo\Anaconda3\tcl\tcl8.6" os.envir...
asked by 14.07.2018 / 07:22
1
answer

Read URL every 60 seconds in Python

I want this URL every 60 seconds, I have this code. The URL brings me data of actions import requests url="https:XXXXXXXXXXXXXXX" r = requests.get(url) text = r.text print (text) How can I do a function to read it to me every 60 seconds?...
asked by 14.07.2018 / 15:07
1
answer

Python lists when I pop in one does pop in the other for no apparent reason? [duplicate]

I put an example of what is happening to me, I equal an empty list with a list full of elements, and when I pop in one it does pop in the other but I need that when it is empty the second one is filled with the first one lista1 = ['elemento1...
asked by 15.07.2018 / 17:01