M
M
Max Antonov2017-03-29 21:57:38
Python
Max Antonov, 2017-03-29 21:57:38

How to write a separate shape class?

Good day! In the process of mastering Python, and in particular the PyQt5 library, I ran into a problem: you need to create a class that would draw a circle. What for? Gnawing on the creation, Prokhorenka stumbled upon Drug & Drop and, experimenting on his determination, I am trying to implement dragging at least some object in the window ... How? Dont clear. The example https://pythonworld.ru/gui/pyqt5-dragdrop.html clarifies little. Suggest a suitable solution please.
I need an example of writing a class of a geometric figure and, in general, it will be great, the code on how to move it in a window of the QWidget type.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rishat Sultanov, 2017-03-29
@rishatss

Good evening :)
I was fond of PyQT myself
And I made a Russian roulette toy :)
This library helped a lot :)
https://docs.python.org/2/library/turtle.html
Be sure to check it out :) Mugs are her strong point :D

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question