Questions tagged as 'python'

0
answers

Python Convert string to base64

In python, I get the value of a tag from an xml file. In this case I get the value of the tag X509Certificate, now this value I want to convert it to a base64 string and then process it to an image. <ds:X509Certificate>MIIFDTCCA/WgAwIBAg...
asked by 02.12.2017 / 14:59
1
answer

Delete unicode prefix (u) from JSON file with Python

I'm trying to read a JSON file with Python 2.7. To do this, I read line by line and extract the fields that interest me. But I'm having problems because I get the prefix unicode (u) in some fields. {u'quote_count': 0, u'contributors': None,...
asked by 26.12.2017 / 13:49
2
answers

How to hide the cmd window when opening a program in tkinter?

I was wondering how to hide the cmd window that is created when I open my program in tkinter. This is what I mean: As you can see behind the tkinter window, one of cmd opens. How can I hide it?     
asked by 27.01.2018 / 00:46
2
answers

Finder in Django administrator

In the django administrator, is there any way to enable a search engine? You have a button to add a record, but when these records are too many, it is too late to find a record to modify or delete. In the image 14 thousand records are shown,...
asked by 27.01.2018 / 03:19
1
answer

Problem with character '\ n' when interpreting a date

Dear, I have a code to change dates of type string in a text file to a list of dates of type datetime : import datetime as dt import workdays Holidays = open("C:\holidays.txt").readlines() print (Holidays) dates_list = [dt.dateti...
asked by 22.11.2017 / 15:59
1
answer

How do I get the input information with beautifullsoup (PYTHON)?

I need to scrap a website, already log in and perform a search but the information comes out this way: and its html code is: <div class="controls"> <input id="sumaAsegurada_formatted" name="sumaAsegurada_formatted" size="17"...
asked by 22.11.2017 / 16:24
0
answers

How to get the value of an input in PYTHON?

Does anyone know how to get the value with a library? I'm trying to scraping an internet site and the information I need shows it but in an input and I do not know how to get it. Thanks for the help. one of the input: <div class="controls"&...
asked by 23.11.2017 / 15:54
0
answers

Error NLTK was unable to find the java file

I have a code written in Python that uses a particular tokenizer. In particular it is necessary to read a java file, which I have installed in the corresponding directory. german_postagger = StanfordPOSTagger(r'/Users/test/stanford-postagger/m...
asked by 26.11.2017 / 20:13
1
answer

how to prevent messsagebox from opening another window?

I have difficulties with tkinter and it turns out that I have created a root window, which inherits UI. from tkinter import * from ttkthemes import themed_tk as tk from tkinter import ttk import tkinter.messagebox as tmb class UI(Frame):...
asked by 19.11.2017 / 00:17
0
answers

DEFINING A HIERARCHICAL STRUCTURE IN PYTHON

HOW CAN I DEFINE A HIERARCHICAL STRUCTURE IN PYTHON At the level of an organization chart, for example MANAGEMENT & GTI MANAGEMENT MANAGER? that the user defines the levels, hierarchies, number of employees by hierarchy, I assume that the struct...
asked by 18.11.2017 / 04:35