Questions tagged as 'python'

0
answers

Apply stylesheet effect to menus of a qmenubar

I would like to know how I can apply a stylesheet effect to the menu buttons of a qmenubar in pyqt this is the code to change the properties of the QMenuBar: QMenuBar{ background-color: rgb(49,49,49); color: rgb(255,255,255); border: 1p...
asked by 10.07.2018 / 22:06
0
answers

show the data of two models at the same time in a single view odoo11

I would like some guidance, I have two models in odoo11 , and I want to show part of your inf. sale_order and mrp_bom . The idea is to continue showing the inf. of the order of sale but in the product that I add to that order is a com...
asked by 10.07.2018 / 22:20
1
answer

Change variable ID in firebase with the Python Firebase library

I would like to know how I can enter data to firebase so that the structure is for example like this: /Usuarios/Administradores/Angel/Nombre and not this: /Usuarios/Administradores/-LGze8xg3oWiYgzWi6F1/Angel2/Nombre that is, I do not w...
asked by 09.07.2018 / 23:46
0
answers

I do not understand why the TypeError error is due: 'int' object has not attribute '__getitem__'

I'm just beginning and I do not understand why the error I get when executing is due. I want the for loop to scroll through the longitudpista list and compare it to the value of horzpart and determine, with the conditionals,...
asked by 10.07.2018 / 03:06
1
answer

Django 2 pick up parameter passed in the url inside a ListView

If I have a URL that passes a parameter as follows http://mysite/person/car?parametro=1 In a ListView I get that parameter in the following way Parametro = request.GET.get("id") But if the parameter is passed in the url "person/<i...
asked by 10.07.2018 / 18:09
0
answers

Are the Attributes "Necessary"?

Programmers, I have a question emerging, but quite elementary. In OOP, we can assign a series of attributes to our classes to mold objects to convenience, understanding this, is it necessary to create variables separately? Or is it enough to ass...
asked by 14.07.2018 / 22:12
1
answer

What is a builder?

is the following code of a simple app in kivy: from kivy.config import Config Config.set('kivy', 'keyboard_mode', 'system') from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.lang import Builder from kivy.properties i...
asked by 17.04.2017 / 19:15
0
answers

How to print from python to a ticket printer

I have been researching how to send a text file to a USB ticket printer, using Python and PyQt, however I have not managed to find anything useful for Windows in this case. I hope someone can support me with a code to perform this task THA...
asked by 09.07.2018 / 03:56
0
answers

Create an executable to move a file from one directory to another

I am trying to create a Python script that moves a file that is always in the same directory, that is, in my process it is generated by default, to a directory chosen by the user and that asks a question type Where do you want to save the res...
asked by 09.07.2018 / 11:06
0
answers

Custom endpoint API REST FRAMEWORK

I'm trying to make an endpoint to show the data of different models.    Webinars, Slide, Academy class Webinars(BaseTitle, Timestamp) class SlideBanners(models.Model) class Academy(BaseName, Timestamp) These models do not have relatio...
asked by 19.07.2018 / 14:46