#14417 closed enhancement (fixed)

Delete old coordinate slider when new one is created

Reported by: Albert.Smith-Penzel@… Owned by: Tom Goddard
Priority: moderate Milestone:
Component: MD/Ensemble Analysis Version:
Keywords: Cc: pett, Elaine Meng
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

From: Albert Smith-Penzel
Subject: coordset slider
Date: January 19, 2024 at 8:48:58 AM PST
To: Tom Goddard

Dear Tom,

We’re working with ChimeraX to view some short trajectories. A very nice feature is that when we load a trajectory onto the molecule is that the coordset slider appears. If we then load a new trajectory into the molecule, a new slider appears but the previous slider remains. So, of course, we can click it away, but it would be nice if we could automatically close it somehow. Either a shell solution or a command line solution would work.

So, I can find the slider widget from the shell, but can’t seem to manage to delete the little window that’s around it:

for w0 in session.ui.allWidgets():

if 'Slider' in w0.repr():

w=w0

But, that’s just the slider itself. I’d like to get rid of the whole window. How would I go about doing this?

Thanks for you help.

Cheers,
Albert

Change History (1)

comment:1 by Tom Goddard, 21 months ago

Resolution: fixed
Status: assignedclosed

Fixed.

I made the coordset slider command always remove existing sliders for the specified structures before creating new ones.

Note: See TracTickets for help on using tickets.