This is a read-only mirror of pymolwiki.org
Difference between revisions of "Category talk:Plugins Tutorial"
Jump to navigation
Jump to search
JasonJPilot (talk | contribs) |
m (4 revisions) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
! | ! | ||
− | To avoid an error if the pdbCode returns | + | To avoid an error if the pdbCode returns "None" e.g. by pressing the cancel button in dialog popup, |
use this changed part of program | use this changed part of program | ||
! | ! |
Latest revision as of 01:30, 28 March 2014
Creating the Interface
! To avoid an error if the pdbCode returns "None" e.g. by pressing the cancel button in dialog popup, use this changed part of program !
def fetchPDBDialog(app):
pdbCode = tkSimpleDialog.askstring('PDB Loader Service',
'Please enter a 4-digit pdb code:',
parent=app.root)
if pdbCode: # to avoid an error when pdbCode returns None! (e.g. cancle button!)
remote(pdbCode)