Hi Ed,
The tutorial doesn't consider that the "dialog" variable must not go out of
scope. It needs an additional reference to keep it alive, e.g. a global will
work:
dialog = None
def run_plugin_gui():
from pymol.Qt import QtWidgets
global dialog
if dialog is None:
dialog =
Hello,
I'm trying to create what I think should be a fairly simple plugin to
use pymol to showcase structures for a University Open day - all it
needs to do is load up coordinate files and maps and present a very
simple GUI that visitors can use to move between pre-defined scenes.
I've