Questions tagged as 'python-3.x'

1
answer

Problem handling text files with python

I'm trying to make a game of gallows, and for that, I'm picking up lists of words and putting them in .txt format for Python to use in the game. When picking up a list of names of people, there are some that come with parentheses after the n...
asked by 01.05.2015 / 17:47
1
answer

How to access the menu item of a menu

I would like to know how to access an item from a menu, to connect it to a function or handler . For example, I would like to control the behavior of the application when I click in the item menu. The function bind can be useful, bu...
asked by 19.10.2014 / 20:08
4
answers

How do I capture each key typed in python

I'm trying to make a program that captures the keys typed on the pc, so that I can access them later. I do not know where to start. I do not know if it uses sqlite3 (database), in google I researched, but some explanations are zero.     
asked by 05.09.2018 / 06:03
2
answers

Python variable reference return

When we define a variable, we are basically naming a memory address, it follows a script that represents my doubt: class Spam: _value = [] @classmethod def value(cls): return cls._value >>> Spam.value() [] So...
asked by 12.08.2018 / 05:02
0
answers

How to do python only read the file when it is complete

I'm doing a program that reads a .txt file that updates itself in the execution of another program in fortran and creates a real-time animation of the temperature map of a board, however it is giving an error because the fortran is updating the...
asked by 31.08.2018 / 15:29
0
answers

Difficulty in running

I'm doing a program Served on Socket Python using interface Tkinter , I can not exchange information from the scripts, to enter into the Tkinter GUI. when I execute both importing the socket I have no way to execute the rest...
asked by 08.01.2018 / 19:53
1
answer

Regex can not find all the required expressions

Hello, I'm new to python, and I'm probably taking a very amateur approach to the problem. I'm trying to find N-digit sequences in .txt files (in example N = 17). I have thousands of files and I've been creating regular expressions for the most c...
asked by 23.11.2017 / 20:20
1
answer

How could I make an app that works in the background with python and kivy?

I'm trying to make an app in kivy that takes information from a database in the background, and when there is a change in the database, send a notification to the user. Could you please tell me if it's possible, and if so, how?     
asked by 09.11.2017 / 20:24
0
answers

Display message (QmessageBox) from another class other than the main one in PyQt4

Friends, I ask you for help, I suppose it's simple but I'm having difficulty, because I'm still learning object orientation with PyQt4. I have a main class (Application) separate from the class that forms the main screen (in the ui_principal.py...
asked by 21.11.2017 / 18:45
1
answer

Ways to find out the highest and least number entered in the input by the user in a for

Well briefly, I have a question if there is a way to make this code any more "simple". The code itself is already simple but wanted to know if there is another way using less lines or without using the power. This was the only way I could get...
asked by 04.11.2017 / 22:02