2 #-----------------------------------------------------------
3 # Python script which creates a function "loadlgf" that
4 # replaces the code formerly in "formats.c" (deprecated).
5 # Python scripting is now the preferred method for handling
6 # alternate file formats.
7 #-----------------------------------------------------------
16 # check magic cookie to see if it's a real LGF file
26 # Now go load the LGF library (required)
27 # '-1' loads at the end of the current library pages
29 library('lgf.lps', -1)
55 filepopup('Enter filename to load:', 'loadlgf')
57 bind('Control_l', 'promptlgf')
58 newbutton('Edit', 'Load LGF File (^L)', 'promptlgf')
60 #-----------------------------------------------------------