"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "modules/pymol/plugins/installation.py" between
pymol-v1.8.6.0.tar.bz2 and pymol-v2.1.0.tar.bz2

About: PyMOL is a Python-enhanced molecular graphics tool. It excels at 3D visualization of proteins, small molecules, density, surfaces, and trajectories. It also includes molecular editing, ray tracing, and movies. Open Source version.

installation.py  (pymol-v1.8.6.0.tar.bz2):installation.py  (pymol-v2.1.0.tar.bz2)
skipping to change at line 154 skipping to change at line 154
def get_plugdir(parent=None): def get_plugdir(parent=None):
''' '''
Get plugin directory, ask user if startup path has more than one entry Get plugin directory, ask user if startup path has more than one entry
''' '''
from . import get_startup_path from . import get_startup_path
plugdirs = get_startup_path() plugdirs = get_startup_path()
if len(plugdirs) == 1: if len(plugdirs) == 1:
return plugdirs[0] return plugdirs[0]
import sys
if 'pmg_qt.mimic_tk' in sys.modules:
from pymol.Qt import QtWidgets
value, result = QtWidgets.QInputDialog.getItem(None,
'Select plugin directory',
'In which directory should the plugin be installed?', plugdirs)
return value if result else ''
dialog_selection = [] dialog_selection = []
def plugdir_callback(result): def plugdir_callback(result):
if result == 'OK': if result == 'OK':
dialog_selection[:] = dialog.getcurselection() dialog_selection[:] = dialog.getcurselection()
dialog.destroy() dialog.destroy()
import Pmw import Pmw
dialog = Pmw.SelectionDialog(parent, title='Select plugin directory', dialog = Pmw.SelectionDialog(parent, title='Select plugin directory',
buttons = ('OK', 'Cancel'), defaultbutton='OK', buttons = ('OK', 'Cancel'), defaultbutton='OK',
scrolledlist_labelpos='n', scrolledlist_labelpos='n',
 End of changes. 1 change blocks. 
0 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)