Questions tagged as 'python'

0
answers

Personalized Menubar PyQt

Hello, I have a project for which I'm doing a menu bar. However I want to know how I can move the menus that are added and how I can change its content and its background color is to say that it can handle all the properties. I want to get...
asked by 03.03.2018 / 20:04
0
answers

How to import scripted modules with extension .pyw?

recently I try to run on linux (debian 9) an app that I am programming on windows with python3 and PyQt5 The problem, I can not import modules from any script with extension .pyw I explain myself better. I have the files in the followin...
asked by 02.03.2018 / 22:57
1
answer

How to transfer ownership of a file automatically?

A client has asked me to develop a script to automatically change the owner of the files contained in a folder. Since GAS does not allow the change of owners to the files of other users I tried to do it with "Delegating domain-wide authority to...
asked by 22.02.2018 / 12:41
0
answers

Problem with Odoo module

I have a problem with a Odoo module that I created. First of all say that I have no idea to program in Python part of the little I've seen in tutorials of Odoo . I have a module with three relations calculated fields and it w...
asked by 01.03.2018 / 10:06
0
answers

How to access MenuBar Properties

I have a problem. In PyQt5 generate a menubar and within the 2 options file and edit. What I want is to get access to the position and size of those two options. In other words, I want to put any of the 2 options within the menubar in any positi...
asked by 03.03.2018 / 05:29
0
answers

How to use str for file lines in Python?

When reading the lines of the file, some characters are always read as last characters, some white characters as spaces and the line change character ('\ n'). This causes the created file names to include these additional characters. For example...
asked by 01.03.2018 / 16:06
1
answer

Generate .pyc files in Python 2.6

I want to generate the compiled .pyc from .py scripts in Python 2.6.6. The following line works in Python 2.7: python -m compileall C:\una_ruta\myscript.py If I do the same in Python 2.6.6 (even passing the complete routes): C:\Python26\p...
asked by 28.02.2018 / 14:02
0
answers

Positioning buttons in QMenubar ()

My question is: How can I position a button in the position I want in a QMenuBar in pyqt. For example, the Edit button in the middle of everything and the Help button aligned from the right. already try this. menu = self.menuBar()...
asked by 02.03.2018 / 16:35
0
answers

I do not update the table in postgresql with python

Query, the UPDATE clause with postgresql and psycopg2 generates problems for me, and I do not know why, the execution accepts the modification and without leaving the menu I see the changes, but in the bd postgresql table the update does not occ...
asked by 02.03.2018 / 16:02
1
answer

Calculate fields in view and pass the query to the template

I am using Django 1.4 and I have a query that brings several data from the db, including one that can have 3 different values (type). Depending on this data I make a conditional and calculate some values (accommodation and diet) to send to the t...
asked by 24.02.2018 / 06:22