Questions tagged as 'python-3.x'

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 / 23:57
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 / 06: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 / 17:06
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 / 17: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 / 17:02
1
answer

Validate a field of type Float accept zeros after a decimal point in SQLAlchemy

I am using the Sqlalchemy orm, when I enter a data of type Float or Numeric does not accept zeros, example: price = 12.0231 price = 12.1021 price = 12.0012 The previous ones, if you keep the zeros The problem is when the z...
asked by 25.02.2018 / 02:17
1
answer

pyodbc remote server connection

Dear, I am working on a database in ms access I make a query locally and everything works well with the module pyodbc I leave the syntax: conn = pyodbc.connect("Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=C:\Users\Doron E\Desktop\...
asked by 01.03.2018 / 19:13
0
answers

Menu in window without borders

You will see I have this code to generate a program without borders in PyQt5 the problem is in the menu bar. The first thing I tried was to directly load the main menu with the menuBar () function, but I can not accommodate the close, minimiz...
asked by 01.03.2018 / 19:29
1
answer

Get json values

I have this json { "type": "FeatureCollection", "features": [ { "id": "0", "type": "Feature", "properties": { "Name": "L�nea G - Buenos Aires - Tapiales", "L...
asked by 23.02.2018 / 12:44
1
answer

the code must read a file type .txt and put it in cipher cease, the problem is that it takes away the spaces

r=2 while r==2: print("1. Cifrar \n") print("2. Decifrar\n") res = pos=int(input("Elige una opcion de las anteriores \n =>")) ar = open ('prueba.txt','r') #archivo que lee G = ar.read() print(G)# imprime texto que exi...
asked by 22.02.2018 / 22:15