Skip to content

bgriffen/Python3GUITemplate

Repository files navigation

Python3 GUI Template

View Upon Launch.

Python2 is dead. Long live Python3.

This template is an improved and upgrade template made from the pieces of my Python2Template. I've removed MayAvi and reduced it to the simplest components of Traits/TraitsUI+Matplotlib. The key difference here is that the backend is QT5 which leans heavily on the code found here.

Requirements

I've stripped back the requirements and wrapped it all up in a conda environment file as the key to getting this working at the relevant version dependencies. There are two options to get you going, either:

pip install -r requirements.txt

Verified on Ubuntu (16.04 verified) and Mac OSX (10.13.6 verified):

Be sure to update your conda should you run into any issues:

conda update conda

Getting Started

To run this program, you simply load your environment and run.

source activate Python3GUITemplate
python main.py

There is very comprehensive documentation on using Traits here and a lot of tutorials. I have some additional information relating to the Traits/TraitsUI functionality found here. Note: that post is based on the old Python2 version.

There is an additional script standalonematplotlib.py which just demonstrates the matplotlib functionality.

About

A boilerplate Python3 GUI with matplotlib using a QT4 backend.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages