Questions tagged as 'python-3.x'

1
answer

How to rotate a video within a GUI

Good night, I have a problem. I need to run a youtube video inside a GUI interface (with Python). A user of the community helped me by providing the following code: link however, it was written using PyQt4. But all my final project is...
asked by 14.07.2015 / 05:19
1
answer

Go through the entire record

I would like to know if I can get through the whole registry (keys and subkeys, do not need the value of them) of the operating system to find the name of a specific key? If yes, could someone tell me how to do it in python 3.x + or at least...
asked by 29.05.2015 / 05:24
2
answers

Automatic initialization

I have a program in Python and need it to start automatically with Windows, I could not find any material related to this on the internet.     
asked by 04.06.2015 / 17:22
1
answer

Create a function that returns information about a file

I have to create a simple function that writes in the idle information about a file. I have already done many functions of this type, I had even created a notepad in C #, but I wonder if what I am doing is correct and why. The information we...
asked by 09.11.2014 / 18:28
1
answer

You can modify the header comment of a file in PyDev

I've been experimenting with several Python IDEs, for example PyCharm or the same IDLE . Now I'm trying to use PyDev as a plugin for Eclipse , and I'm pretty much like it. I would like to know if it is possible to chang...
asked by 08.12.2014 / 02:46
1
answer

TypeError: ord () expected a character, but string of length 2 found

if ord(c) >= ord('A') and ord(c) <= ord('z'): TypeError: ord() expected a character, but string of length 2 found I'm trying to create a casear cipher algorithm, but I have a problem with the ord string, which tells me that I'...
asked by 14.10.2014 / 23:49
0
answers

ValueError: Can not assign "'1'": "User.campus" must be a "Campus" instance. Error in Super User registration in Django

I'm developing an application where the user needs to be on a campus. However, when the superuser is created on the terminal, an instance error occurs. Note: The database is correctly pre-populated to search for 'campus_id'. Django 2.0.4 a...
asked by 05.01.2019 / 01:20
0
answers

Django form linked to record

I have two tables in Django (Game and Gol) and I'm trying to create a form for them: class Jogo(models.Model): ativo = models.BooleanField(default = True) dataHoraInicio = models.DateTimeField(verbose_name = 'Data e Hora de Início')...
asked by 04.01.2019 / 20:27
0
answers

I can not use schedule

I already ran the command pip install schedule and the pip3 install schedule However when I try to import the schedule import schedule The following error appears:    ModuleNotFoundError: No module named 'schedule' What do...
asked by 27.12.2018 / 12:28
0
answers

Generating correlation matrix with Matplotlib and Seaborn

I have some data in Excel that I wanted to generate a graphical correlation matrix in Python. I looked in the Seaborn documentation and found a an example code on the documentation page, but my data that I want to compute the correlation I put...
asked by 29.12.2018 / 04:01