How to clear tracks

More
29 Jul 2021 21:59 #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 or Create an account to join the conversation.

More
29 Jul 2021 23:06 #216296 by cmorley
Replied by cmorley on topic How to clear tracks

Please Log in or Create an account to join the conversation.

More
29 Jul 2021 23:48 #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 or Create an account to join the conversation.

More
29 Jul 2021 23:51 #216301 by yi2580
Replied by yi2580 on topic How to clear tracks
There are many buttons. I'm not sure which one to use
Attachments:

Please Log in or Create an account to join the conversation.

More
30 Jul 2021 00:06 #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 or Create an account to join the conversation.

More
30 Jul 2021 00:35 #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 or Create an account to join the conversation.

More
30 Jul 2021 00:51 - 30 Jul 2021 00:52 #216308 by cmorley
Replied by cmorley on topic How to clear tracks
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.
 
Last edit: 30 Jul 2021 00:52 by cmorley.

Please Log in or Create an account to join the conversation.

More
30 Jul 2021 01:11 #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 or Create an account to join the conversation.

More
30 Jul 2021 01:20 - 30 Jul 2021 01:22 #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!
Last edit: 30 Jul 2021 01:22 by yi2580. Reason: Expression error

Please Log in or Create an account to join the conversation.

Time to create page: 0.143 seconds
Powered by Kunena Forum