All Questions

1
answer

Compatibility of Python and Mac OS

I have installed version 2.7 of python on a Macbook Pro mid 2012, and it looks something like this: WARNING: The version of Tcl/Tk (8.5.9) in use may be unstable. Visit http://www.python.org/download/mac/tcltk/ for current information. The...
asked on 31.10.2016 / 22:00
1
answer

multithreading chronometer in python

I am doing a project for the school in which I have to program software that helps children improve their spelling: #-*- coding: utf-8 -*- import random import subprocess def corrector(pbien, tup): if tup == pbien: return 1 e...
asked on 27.03.2018 / 01:09
1
answer

Show message after opening of Form

I am making an application where after the login window, if you are a new user, you will run a tutorial to show the use of it. The problem is that a method of the second form is executed where the messagebox is displayed before the logeo form is...
asked on 27.03.2018 / 08:37
2
answers

get all the values of a select when loading the page

I have the following code, it turns out that I want to capture all the Values of a Select hidden once the page is loaded in Html , capture them in Javascript and send them by means of a JSON to the controller of 'laravel....
asked on 28.03.2018 / 21:45
1
answer

Join repeated items in a list

I try to get that from the result of a function that is returning me lists of words like the following: [('algo', 1), ('de', 1), ('una', 1), ('de', 1), ('una', 1), ('y', 1), ('otra', 1), ('cabeza', 1), ('', 1)] that another function I go pi...
asked on 29.03.2018 / 09:31
1
answer

Optional routes in Flask

Is there any way to make optional routes? For example: @app.route(r'/contacts/<key>/<name>?', methods=['GET']) def contact_deatils(key, name = None): print(key, name) return 'mensaje de prueba' if you place parameters...
asked on 26.03.2018 / 21:26
1
answer

Create a ListView and DetailView with two models

I have 2 models that are related to a OneToOneField , but I do not know how to access the 2 models, my view is as follows: class ListaSolicitudes(ListView): model = Modelo1 #aqui recibe un solo modelo, como uso el segundo modelos...
asked on 07.03.2018 / 17:09
1
answer

Does the Collection.shuffle () method serve to clutter lists only?

I created a set: Set<Integer> bombo1 = new LinkedHashSet<>(); And I want to mess up the whole. The problem is that I do not know how. I've tried with: Collections.shuffle(bombo1); but only serves to sort lis...
asked on 06.03.2018 / 23:56
1
answer

how to generate a csv of users in Django?

I have a problem trying to generate a CSV file with all registered users to export it. def descargar_usuarios(request): perfiles = Perfil.objects.all() response = HttpResponse(content_type='application/csv') with open('usuarios.csv','wb') as f...
asked on 05.03.2018 / 10:53
1
answer

Verify js syntax in Visual Studio

I would like to know if Visual Studio 2017 has a tool to verify the java script syntax when compiling a project. Currently if I have an error a js file, I only realize how much the eject and the browser reports the error. Thanks for the he...
asked on 28.03.2018 / 20:54