jsmidt / QuantPy

A framework for quantitative finance In python.
BSD 4-Clause "Original" or "Old" License
677 stars 106 forks source link

Create instructions on how to make the GUI work on Windows #21

Open kodchi opened 11 years ago

kodchi commented 11 years ago

So it doesn't look like there is an easy way to get pygobject working on windows. I think there is a way to compile it using mingw, but I haven't tried it.

I think GTK+3 itself is pretty new, so it takes some time before we can use it with pygobject.

jsmidt, are we still going with GTK+ or do you want to see other alternatives?

QuantPy commented 11 years ago

I think given these issues the options are:

  1. Use GTK+2 which may be better supported. http://zetcode.com/gui/pygtk/. Looks like it should work with matplotlib: http://matplotlib.org/examples/user_interfaces/embedding_in_gtk.html
  2. Use PyQt: http://zetcode.com/tutorials/pyqt4/ which are a common used and mature bindings for the Qt toolkit. matplotlib is supposed to work with pyQt4: http://matplotlib.org/examples/user_interfaces/embedding_in_qt4.html
  3. Use PySide: http://zetcode.com/gui/pysidetutorial/ which is the newer non-3rd party Qt bindings. I know matplotlib is supposed to work with pyside: http://wiki.scipy.org/Cookbook/Matplotlib/PySide It looks like GUI elements of matplotlib are possibly even based on pyside: http://qt-project.org/wiki/PySide_Based_Apps

Here are some more examples: http://matplotlib.org/examples/user_interfaces/

You decide what is the best option to go with. I am fine with any as long as Windows, Mac and Linux users can install which I believe is the case for all these three.

jsmidt commented 11 years ago

Sorry, that last comment was really from me.

kodchi commented 11 years ago

I think I'll give GTK+3 another try because GTK+2 is an old technology, and I'm not really familiar with QT. If I can get GTK+3 working on Windows, we'll use it right? Getting it to work on Mac should be easier.

QuantPy commented 11 years ago

Okay, if you can get it working then sure.