Skip to content

Latest commit

 

History

History
68 lines (40 loc) · 1.8 KB

README.md

File metadata and controls

68 lines (40 loc) · 1.8 KB

wxnatpy

PyPi version Build Status

wxnatpy is a wxPython widget which allows users to browse the contents of a XNAT repository. It is built on top of wxPython and xnatpy.

Installation

wxnatpy is on PyPi - install it through pip:

pip install wxnatpy

wxnatpy is also on conda-forge - install it through conda:

conda install -c conda-forge wxnatpy

Important note for Linux users wnatpy depends on wxpython 4 which, for Linux platforms, is not available on PyPi. Therefore, if you are using Linux, you will need to install wxPython first - head to https://extras.wxpython.org/wxPython4/extras/linux/ and find the directory that matches your OS. Then run this command (change the URL accordingly):

pip install --only-binary wxpython -f https://extras.wxpython.org/wxPython4/extras/linux/gtk2/ubuntu-16.04/ wxpython

Usage

The wxnat.XNATBrowserPanel is a wx.Panel, which is intended to be embedded in a wxpython application. The wxnat package can also be called as a standalone application, e.g.:

python -m wxnat

This will open a dialog containing the browser panel, and Download and Close buttons.

Acknowledgements

Development on wxnatpy began at the 2017 XNAT Developer Workshop, in Rotterdam, 16th-18th November 2017, with the support of the Wellcome Centre for Integrative Neuroimaging.