How to clear tracks

More
5 years 3 months ago #216293 by yi2580
How to clear tracks was created by yi2580
hello everyone
I created a GUI interface to use GTK, but I don't know how to clear the track after axis movement. Does anyone know? Can you help me solve this problem?
Thank you very much.

Please Log in to join the conversation.

More
5 years 3 months ago #216296 by cmorley
Replied by cmorley on topic How to clear tracks

Please Log in to join the conversation.

More
5 years 3 months ago #216300 by yi2580
Replied by yi2580 on topic How to clear tracks
Yes, I do use gladevcp, but it has many parts. I'm not sure which part I should use.
Thank you for your reply

Please Log in to join the conversation.

More
5 years 3 months ago #216301 by yi2580
Replied by yi2580 on topic How to clear tracks
There are many buttons. I'm not sure which one to use

Please Log in to join the conversation.

More
5 years 3 months ago #216302 by cmorley
Replied by cmorley on topic How to clear tracks
None of those buttons.
You must use python commands.
[widget name].clear_live_plotter()

also I think a mouse button double click will do it (probably the right button)

Please Log in to join the conversation.

More
5 years 3 months ago #216305 by yi2580
Replied by yi2580 on topic How to clear tracks
I may still be a rookie
How should you use this function, do you have any examples, or where should I find the use method of this function
Thank you for your reply

Please Log in to join the conversation.

More
5 years 3 months ago #216308 by cmorley
Replied by cmorley on topic How to clear tracks
Code:
def on_clear_plot_clicked(self, widget, data=None): self.builder.get_object("graphics_widget").clear_live_plotter()
'graphics_widget' must be changed to the actual widget name in your Glade file.
then get a button to call this function.
 

Please Log in to join the conversation.

More
5 years 3 months ago #216312 by yi2580
Replied by yi2580 on topic How to clear tracks
Sorry, I may still not understand what you mean. Is this (graphics_widget) the name of the interface where I want to clear the track?

Please Log in to join the conversation.

More
5 years 3 months ago #216315 by yi2580
Replied by yi2580 on topic How to clear tracks
oh I'm very sorry, I understand what you mean. I have realized the function of track clearing according to your method!
Thank you very much for your answer and reply! Thank you again!

Please Log in to join the conversation.

Time to create page: 0.098 seconds
Powered by Kunena Forum