Questions tagged as 'python-3.x'

1
answer

Looping in dictionaries

I have a problem with dictionaries in python. How do I get the key to a dictionary from the value? That is, if I had a dictionary of the form; d={"key1": {"key2": {"e":5,"f":8,....,"z":10}}} and I want to know which key contains t...
asked by 25.01.2018 / 14:36
0
answers

I can not find the correct selector to scrape hidden table in chromedriver

I'm scraping the web link . In it, we have a list of nodes, each node being a row of the table, that is, a match. Within a node corresponding to any match, if you pass the mouse by the result you get a hidden table, and if you pass through t...
asked by 23.01.2018 / 15:27
0
answers

Doubt with Graphical Interface in Python

Hello community, my question is simple, I would like to know if there is any way to make this interface in python. And if possible, how can I generate changes like this in the windows with python ... to be able to create custom styles....
asked by 29.01.2018 / 20:05
0
answers

How can I get the Facebook ID of someone with Python?

I am developing a small python code and I need to know how I can automate the process of going from the URL of a Facebook profile to your ID. For example, Sony's Facebook is " link " but the ID is "56232316996" ( link ) (via findmyfbid.com)....
asked by 22.01.2018 / 23:44
1
answer

How to position the text of a label on the left in tkinter

Hi, I'm learning about the python tkinter library and I decided to make a calculator. My program used an entry as a text field but that allowed the user to write in it, what I want is that only the buttons work and you can not write, so use a la...
asked by 23.01.2018 / 03:03
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 / 21: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 / 19:21
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 / 04:49
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 / 01:21
1
answer

Is it possible to enlarge the text in window two?

I made a calculator in python that opens in a window using the library of the same name. Is there any way that the text shown is bigger? This is my code: #!/usr/bin/env python3 from math import * import os import time import sys salir = F...
asked by 06.01.2018 / 06:22