Questions tagged as 'python'

1
answer

How to capture events in Python?

I'd like to capture the user-clicked keys through IronPython. I understand a bit of C #, but I'm not understanding how I would do this in Python. Code: import clr clr.AddReference('System.Windows.Forms') from System.Windows.Forms import K...
asked by 27.09.2018 / 03:29
1
answer

How to run Taiga.io on my computer using Nginx

I'm trying to run Taiga.io on my computer. All the backend functions normally, but when I try to access the URL exemplo.com , it does not work. I'm using: link as a tutorial.     
asked by 26.09.2018 / 15:12
1
answer

How to schedule a schedule with kivy

I want to make an event occur for 2 seconds at the speed of 29/30, after 5 seconds from the start of the program, with the following code: from kivy.app import App from kivy.uix.gridlayout import GridLayout from kivy.uix.label import Label fro...
asked by 09.12.2018 / 21:04
2
answers

Property Override

According to some examples I found I'm trying to implement an override of a property , but the override does not work. I think this is a still obscure topic with few examples and little information about it. Here is my example: from abc...
asked by 08.12.2018 / 13:29
1
answer

Online software hosting using python and django [closed]

I'm developing a small ERP management software in Python and using the Django framework, so I had to install some requirements. How do I host this system? Is it like a website? What are the differences? What is the best hosting system?     
asked by 07.12.2018 / 17:14
1
answer

How to make a menu in Console in Python

I need to make a menu in the console in Python, but it should be triggered by letters and not numbers, for example: def menu(): print(''' MENU: [C] - Cadastrar novo voto [R] - Ver Resultado [S] - Sair ''')...
asked by 10.12.2018 / 19:29
1
answer

Pass a URL list to Scrapy function

I have a Python API that gets two arguments (URL and a user-defined word) and provides in the JSON file how many times the specified word appears in the URL. However, I would like to pass a list of URLs. I would also like to make the request...
asked by 28.09.2018 / 16:33
1
answer

Implementation of a Lexical Analyzer

Hello, guys! I'm doing the implementation of a lex analyzer of a grammar I created (using Gals). The validation of the grammar was done using the concept of finite automata, according to the image: AtthemomentIhavethefollowingcodes:lexico.py...
asked by 28.09.2018 / 08:06
1
answer

Can you write all the paragraphs that the user put only after the loop in sequence? and justifiably?

Can you write all the paragraphs that the user put only after the loop in sequence? and justifiably? import textwrap numero_paragrafos = int(input('Quantos parágrafos tem o texto?\n')) for c in range(1, numero_paragrafos +1): paragrafo =...
asked by 10.10.2018 / 20:49
1
answer

Recursive function in python to invert a number

I need to do a recursive function in python to return the number of the inverted form, but to be converted to string. I just managed to do it this way: import math def inverte(num): if(num < 10): return num q=num//10 q=inverte(...
asked by 30.09.2018 / 05:14