Skip to content

Tag: python

Callback from sunburst chart. DASH PLOTLY

i’m writing a code with a sunburst chart that will present all classes from some type of data, and when the user click on what class he wanna see my dropdown menu should present values only from that classe. So, my difficult where how to do this callback, cause all the ways that i tried failed. my df us…

How to make sprite move to point along a curve in pygame

I’m doing a pygame project for practice and I need a sprite to move to some point on screen and I did it, but it moves in a straight line and I would like to learn how to make it move to the same point in a curve. This movement looks like and I would like it to be like

duplication of messages in stderr and stdout python logging

I would like to log info and warning level to stdout and error level and above to stderr how can I do it ? code: logging.conf and output after python3 -m tests 1> output.log 2> err.log: err.log output.log Consequently, the output on the console is: My question is how to make the message not repeat itsel…

Merge using threads not working in python

I have to merge two lists and every time a full the lists in order to merge them , but what is happening that I did it like this : but what is happening that filling_buffer_thread and create_inverted_index_thread just called one time, and not working again, when I debugged the code I see that filling_buffer_t…

ezdxf issue when creating drawing with layers

I have encountered an issue when creating a new drawing using the ezdxf library. I need to create a new dxf drawing, AutoCAD release R2000, so I use the following commands: New entities, e.g. a simple line, are added on separate layers. For example: And then at the end: for saving the document. This works fin…