Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 1002 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 1002 Bytes

Pythonista File Downloader

Custom Downloader for Pythonista with progressbar. Download a file and than keep it in Pythonista or open the file in another app.

Progressbar

Import this class in your python script: 'from progressBarView import progressBarView'.

If you use the UI Designer you have just to add a 'Custom View' to your main view, resize it like you want, than 'edit attributes' and set 'progressBarView' in 'Custom View Class'.

You can choose color, background, border size and color directly from the UI Designer in 'edit attributes'.

If you don't use the UI Designer just inizialize the view like any other custom view and set the proprieties.

Once you have setup the view you have to call the method 'setMaxValue(value)' to set the value that the script have to reach, than 'setCurrentValue(value)' sets the value currently reached. If you want to use this progressbar to display the status of a download take a look at 'file_downloader.py'.