Questions tagged as 'python-3.x'

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 / 07:13
1
answer

cousin problem in python

Friends I need help with this code where I can be wrong? always tells me that the older cousin is in positions 0: '' 'Read 10 integers, store them in a list and determine in what positions of the list is the greatest number read first' '' t...
asked by 06.10.2018 / 19:26
1
answer

problem when opening IDLE: IDLE subprocess didnt make connection

This is what it says: IDLE subprocess didnt make connection. Either IDLE cant start a subprocess or personal firewall software is blocking the connection. Ps: I already tried the firewall     
asked by 18.09.2018 / 21:41
2
answers

does not return the str correctly in python

I have 2 classes one inherits from it to calculate the perimeter and surface of a figure, the problem is that the function of the special str method does not return all the methods correctly class Figura(object): def __init__(self,nombre):...
asked by 04.06.2018 / 21:09
1
answer

How to convert a for from C to python, "It has to be programmed in c"

I'm totally new to C and I need to send it to call a .txt and identify where a For is found, once that is identified for converting it into a python language example: My txt will have the following: #include <stdio.h> int main() {...
asked by 02.12.2017 / 21:54
2
answers

Delay when generating a PDF with Python and Reportlab

My doubt is in the time that my application is delayed at the moment I want to generate a PDF report, with python and reportlab. while they are up to 20 pages the application does not take long, in just seconds it generates the report in PDF, bu...
asked by 01.11.2017 / 14:47
3
answers

Problem csrf_token generated models admin

As I can put {% csrf_token %} to the forms that I generate in the Django admin, I have this problem about these forms and I do not know how to edit them because I have consulted and the solution is to put {% csrf_token %} in the fo...
asked by 15.12.2015 / 20:27
2
answers

How do I access the value of a specific element of a dictionary?

I have a tuple that contains lists as elements, and each list contains a tuple. How could I access the individual value of each dictionary element? The structure would be something like this: mitupla[ ({"Francia": "Paris", "Habitantes":...
asked by 22.12.2018 / 22:34
1
answer

Class claendar Python

I need to make a python program that by a date, specifically on February 19, 2020. get what day of the week will fall, it is important that it is through the use of the class calendar, thanks to antemeno.     
asked by 22.11.2018 / 08:52
1
answer

Use of "for x in range (n, m)"

I am designing a program in python to calculate the sum from n to m of i, and for this I am using "for x in range (n, m)". print("Este programa calcula la sumatoria desde n hasta m de i.\n\nA continuación ingrese los límites:") print("") n =...
asked by 26.09.2017 / 02:35