Questions tagged as 'python'

0
answers

Problems with tkinter and sockets in python

I come for your help. I happen to be doing a game in python a "Battleship". Create the interface with tkinter and to make it online I started using sockets. The problem is that when I want to perform an "attack", everything is pasted. The connec...
asked by 26.11.2016 / 18:18
1
answer

Tkinter / Python: Error deleting a text from a canvas and wanting to write a different one

I have created a "main" window with a canvas in which I load an image and a line of text from an entry Entry. When I delete the text of the canvas and the Entry with the function canvas.delete(tag_del_texto) and entry.delete(0, 'end')...
asked by 04.12.2016 / 23:03
2
answers

I want to use ajax and json so that before sending my form I validate if a field already exists in the database?

Hi, I need someone to help me validate, if a field is already existing in the database before sending the form and if so send me a message and return me to the form as I do? Look, this is my view that makes the process: def inventarioingres...
asked by 29.09.2016 / 19:51
0
answers

How to add 2 Widgets to a LabelWidget of a LabelFrame?

Hi, I'm programming in widget "Title lol?" and the Push me button! Put the two together in the LabelWidget of a labelframe Is it possible? and how can I do it?     
asked by 02.09.2016 / 17:55
1
answer

How to add an item to LabelWidget?

Good morning friends, I'm programming in
asked by 02.09.2016 / 15:58
1
answer

How can I send a message when I redirect to the page?

my question is how can I do so that if a record is inserted correctly, when redirecting me it shows me the registration message inserted correctly. This is the view that redirects me: @login_required() def inventarioempaque(request): em...
asked by 30.09.2016 / 17:40
3
answers

How to avoid repetition of numbers randomly in a range with python3?

I have in mind to make a kind of game type elections where the votes are generated randomly, the problem is that I can not get random to generate random numbers within a range, for example I tell random to interchange 1 and 2 randomly and what I...
asked by 12.08.2016 / 13:21
1
answer

Template does not show me the form made with ModelForm in Django

I'm doing a small ToDo app to start practicing some things in Django and I found this little problem that I do not know how to solve until now. I am using python 3 and django 1.10 models.py from django.db import models from django.forms...
asked by 09.08.2016 / 15:19
1
answer

How to do Drag & Drop with Tkinter?

I need to be able to drag and then release the buttons to the white box. Or would you recommend using IronPython with XAMP? I accept suggestions, books, videos. Thanks     
asked by 19.10.2016 / 05:13
1
answer

Problems with weka in python

When I want to convert a .csv file into a .arff file I use a function that throws me this error    "Not visible constructors for class (weka.core.converters.Loader)" Any solution? or another way to convert .csv to .arff in python? from...
asked by 20.10.2016 / 03:59