Questions tagged as 'python-3.x'

2
answers

How to get the row of a given Python array index

I need through the index of an array "column" to access its entire row in order to be able to change the indexes of this row. The part of collecting the indexes I got, but I do not know how to access through this chosen index view the line compl...
asked by 12.10.2015 / 17:59
1
answer

Python Shell can not run a module with more than one while loop

I have serious problems with building a functional module in which you have to use more than 1 while loop, because the program stops running. Especially when I use modules like pygame and tkinter, in which my goal is to build a game, but I ne...
asked by 09.07.2016 / 20:01
1
answer

Clear the contents of IDLE with a command

I'm creating a database that generates tables, but for the graphical part I'm not using any particular bookstore, like TkInter, but only the IDLE and some prompts. / p> But I would like to improve the part of the database menu. One problem is...
asked by 29.10.2014 / 22:35
1
answer

Save text of a tkinter Text object to a variable

I would like to know if there is a way to save the textual content of a tkinter.Text object to a string variable. Why? Because I create the tkinter.Text object within a function, and therefore the other function that manipulates the te...
asked by 08.10.2014 / 18:42
1
answer

Can you tell which shapes are currently available?

I'm using the turtle of Python module and would like to know if you have a way to know what types of shape that turtle can take . I know you can create or add more shapes to the TurtleScreen dictionary, but honestly I di...
asked by 25.09.2014 / 22:36
1
answer

How to keep the window created by open PyQT5?

After a long study of the object orientation part, I started to study PyQT5. I was doubtful in the following code: class App(QWidget): def __init__(self): super().__init__() self.title='Hello, world!' self.left=10...
asked by 26.12.2018 / 10:57
1
answer

Pass descriptor by parameter to another descriptor

Let's say that in a class I have two descriptor properties. The first one ensures that the property in question is either negative the second must ensure that the property associated with it will not be greater than the previous property. For...
asked by 31.12.2018 / 15:14
1
answer

How to reduce the execution time of a program in python?

I've been trying to solve a scheduling problem for a couple of days that involves searching to find the union and the intersection between sets. I have managed to solve the problem with small sets, but when the set starts getting very large,...
asked by 27.12.2018 / 14:47
1
answer

Program Creation in Python 3

I'm doing an exercise:    A factory has 10 representatives. Each receives a commission calculated from the number of items in an order, according to the following criteria:   - for up to 19 items sold, the commission is 10% of the total value...
asked by 31.10.2018 / 21:55
1
answer

How to make a program run inside a pygame window?

I made a window using pygame, and I have a code that wanted it to run inside of it, but I do not know how to do it, if anyone can help I'm very grateful. Here is the window code: pygame.init() tela = pygame.display.set_mode([500, 400]) pyga...
asked by 21.11.2018 / 17:39