Questions tagged as 'python'

0
answers

Help with python requests

I want to create a BOT in python to send POST login requests, and then send another request to create a character, but when I run the code it does not create any characters, can anyone help me? import requests import random def gera_char(tama...
asked by 13.02.2018 / 22:50
0
answers

Python library error

Yesterday I installed the chatterbot by the pip method only when I'm going to import something from his library into the pycharm of the error as if I had not installed it: import chatterbot ModuleNotFoundError: No module named 'chatterbot'...
asked by 13.02.2018 / 12:55
1
answer

Python: How are dynamic Flask routes implemented?

I started to study a bit about Web development with Flask. The framework treats dynamic URL components as follows: @app.route('/<comp_dinamico>') def page(comp_dinamico): # codigo return '%s' % comp_dinamico What I wanted to...
asked by 13.02.2018 / 13:02
1
answer

Django create page using Ajax

I want to upload without refreshing paging using ajax I have a table where it shows 5 items per page the goal is to change the page do not refresh the page to change to the next In views: Inthepaginationnavtemplate     
asked by 09.02.2018 / 16:45
1
answer

How to fix ipykernel_launcher.py: error: unrecognized arguments no jupyter?

I'm following this tutorial of tensorflow after two days preparing the environment in Anaconda I finally managed to execute premade_estimator.py using cmd ButwhenItrytorunthesamecodeinjupyter,Igetthiserror:usage:ipykernel_launcher.p...
asked by 14.02.2018 / 22:15
0
answers

Mysql + Python (Save Login in Variable to make Connection)

import os import getpass import mysql.connector class AcessDataBase(): UserName = "" PassWard = "" DataBase = "" def LoginDB(self): self.UserName = input("Username: ") os.system("cls") self.PassWard = getpass.getpass("Passwa...
asked by 08.02.2018 / 12:39
2
answers

Python - Assign the value of an entry to a variable

I tried to use the command mensagem = str(entry.get()) but it does not work, I tried to use entry = Entry(root, textvariable='mensagem') but it also does not work, see the whole code basically I want to type something in an entry a...
asked by 07.02.2018 / 21:46
0
answers

Doubt on how to use on_text () and on_start () in Python

Hello everyone. I have a doubt. I am a beginner in the language and I am trying to develop a screen for selling a product for training. Then there are the fields "description", "quantity", "unit value" and "total value". My idea was that as I fi...
asked by 15.02.2018 / 18:48
1
answer

kivy in python 3.6

I'm using Python 3.6.2 and I'm learning kivy . The script does not run because sdl2 is missing. I already installed pillow and pillow-PIL , but I can not install sdl2 . I tried pysdl2 and it did not work....
asked by 15.02.2018 / 22:11
0
answers

Python - remove_widget does not remove everything you need

Good evening, everyone. I have a screen where you have four fields to add products: "description", "unit value", "quantity" and "total value" To add more products, have a "+" button and to remove the last line, a "-" button as in the image:...
asked by 17.02.2018 / 01:17