Download and view an image using image viewer
Code: "tools_iview.py". Programming language: Python
DMelt Version 1. Last modified: 07/23/2017. License: Pro
https://datamelt.org/code/cache/tools_iview_1240.py
To run this script using the DMelt IDE,
copy the above URL link to the menu [File]→[Read script from URL] of the DMelt IDE.
from jhplot import *
import urllib
# get from the web
wfile="example.gif"
urllib.urlretrieve ("http://datamelt.org/examples/data/"+wfile,"/tmp/"+wfile)
#view from system location
#file=SystemDir+fSep+"macros"+fSep+"examples"+fSep+"data"+fSep+"example.gif"
a=IView("/tmp/"+wfile)
You see the box below because you did not login.