Re: [PyMOL] NameError: name 'util' is not defined

2019-02-12 Thread Søren Nielsen
d after "self._pymol.start()": > import pymol.util > self._pymol.util = SelfProxy(pymol.util, self._pymol.cmd) > > I've tested this and it works with the color menu. > > Cheers, > Thomas > > > On Feb 12, 2019, at 8:26 AM, Søren Nielsen >

Re: [PyMOL] NameError: name 'util' is not defined

2019-02-12 Thread Søren Nielsen
return v(*a, **k) > return wrapper > > # and after "self._pymol.start()": > import pymol.util > self._pymol.util = SelfProxy(pymol.util, self._pymol.cmd) > > I've tested this and it works with the color menu. > > Cheers, >

[PyMOL] NameError: name 'util' is not defined

2019-02-11 Thread Søren Nielsen
Hi, I am using pymol with a wxpython interface and everything seems to work, except when I try to change the color of an object using the internal gui, I get a NameError: name 'util' is not defined error... can you see what is the problem here? Best, Soren Here is the script I am using: import