Questions tagged as 'python-3.x'

1
answer

How to run a module in Python?

I have a question. A few days ago I'm creating an application with a GUI interface to show movie schedules. It was built in modules, for example a module takes care of the images, searching the web and downloading. Another module takes care of o...
asked by 31.07.2015 / 18:38
1
answer

Encoding, conversion bytes - strings

I have a problem, I've been searching but all the solutions I find do not work. The problem is that I am accessing a page (.txt) and I can not convert it from bytes to string , in order to work the data (ex: page.split("\n") ) import...
asked by 02.07.2015 / 12:41
1
answer

Sort a second column array

How to sort the following matrix according to the x coordinate column? I want you to not only order the coordinates, but to change the lines so that the coordinates of the cities are correct. What I have so far works for the first 3 cities bu...
asked by 22.05.2015 / 13:51
1
answer

Editing exif from an image

I need to edit the exif information of an image, such as location and date, for example, but I can not find any library to do this with Python 3.4 and Windows. The most I got was using Pillow to read these properties, however, when I edit...
asked by 10.04.2015 / 12:57
1
answer

Show the contents of a list recursively

We are studying recursion in our programming course, and we have an exercise where we have to show in idle the contents of a list using recursion. I did it like this: def print_list_r(ls=[], n=0): if len(ls) == 0 or n < 0: ret...
asked by 07.11.2014 / 00:50
2
answers

How to create a recursive algorithm to find the depth of a list

I'm trying to create a recursive algorithm to find the depth of a list, which is the largest number of nested lists , but this is complicated, I can not find it. I realize the path that the algorithm has to make, but I still have not clear...
asked by 10.11.2014 / 00:02
1
answer

Add shortcut to a menu in tkinter

I'd like to know how to add a shortcut to a menu item. I already had to search and I saw that it can be done using a special function common to all widgets of the tkinker module, that is the bind function. What I tried to do w...
asked by 19.10.2014 / 17:18
0
answers

(Python + PyQt5) How to close one window after opening another?

Hello. I'm having a difficulty on a login form. When you enter the correct credentials, the next form opens, but the login form remains open. How do I close the login form after opening the next form? Here is the code below: from PyQt5.QtWidge...
asked by 13.12.2018 / 17:25
0
answers

Django Project Deployment on Heroku with Errors

When trying to deploy my Python project using Django in Heroku, I'm getting the following error. Counting objects: 3, done. Delta compression using up to 4 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (3/3), 273 bytes...
asked by 13.12.2018 / 01:12
0
answers

How to import template from another module in Odoo? [closed]

In an Odoo module, there is a section in __manifest__.py , which indicates the dependencies. __ manifest __. py ... 'depends': ['base', 'mrp'], ... How do I access the mrp resources from my module?     
asked by 28.11.2018 / 12:46