[Tutor] easygui

Alex Kleider akleider at sonic.net
Mon Aug 28 23:03:29 EDT 2017


On 2017-08-27 07:18, Mats Wichmann wrote:
> 
> 
> or perhaps less intuitively, stick a first line in it to tell the 
> system
> to have Python run it, so your script looks like this (there are
> possible variants on that magic first line, but this one should work
> whichever your platform is, as long as it is the first line):
> 
> #!/usr/bin/env python
> import easygui
> easygui.msgbox("Hello there")
> 
> 
> and you can then run the script directly.
> 

... After first adjusting permissions:

$ chmod 755 example,py



More information about the Tutor mailing list