1

So I'm thinking of making a data visualizer with multiple tabs - my first task being to make correlations between all the variables (one tab).

I was thinking of doing this in wxPython and doing the calculations in Numpy/Scipy.

My question is, do you think it would be faster/utilize less resources to do this using Qt and C++? I would prefer to go with Numpy since it has significant optimizations that typically? make it better than naive C code.

Would it be possible to make the front end in Qt and write the backend in Python - if so, how?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Eiyrioü von Kauyf
  • 4,481
  • 7
  • 32
  • 41

1 Answers1

1

I know exactly what you need!

You should check out PySide.

From the website: "The PySide project provides LGPL-licensed Python bindings for the Qt cross-platform application and UI framework. PySide Qt bindings allow both free open source and proprietary software development and ultimately aim to support all of the platforms as Qt itself."

For tutorials on PySide, you can checkout the PySide Documentation or the ZetCode tutorials on PySide.

jonathanmarvens
  • 402
  • 1
  • 3
  • 10
  • 1
    If you have any questions, please let me know. I use PySide on a regular basis. Good luck! – jonathanmarvens Aug 21 '12 at 20:46
  • You're very welcome, my friend. Please feel free to come back and comment on here if any help is needed. – jonathanmarvens Aug 21 '12 at 22:59
  • Sorry to be a pain, just wondering if you know by chance the overhead that using Python bindings incurs. – Eiyrioü von Kauyf Aug 22 '12 at 23:07
  • @EiyrioüvonKauyf I doubt that using Python bindings for QT has any substantial overhead. Considering all the support applied to this project, I really would not worry about that until I discovered some real reason to worry. One thing to remember, though, is that Python is a slow language by nature and it is interpreted, so of course it won't run the same as something that is compiled to native...just something to think about. And plus there are optimizations that can be done. – jonathanmarvens Aug 23 '12 at 04:32
  • can you elaborate on optimizations you would suggest / where I could find those - and do you mean python optimizations or python graphics optimizations as I know the former but not the latter. – Eiyrioü von Kauyf Aug 24 '12 at 05:25
  • @EiyrioüvonKauyf Yes, by optimizations, I mean optimizing your Python code and making it more efficient. You can check out the accepted answer to this [StackOverflow question](http://stackoverflow.com/q/7165465/) for a more detailed explanation. You can also check out the [performance tips](http://wiki.python.org/moin/PythonSpeed/PerformanceTips/) on the [python.org wiki](http://wiki.python.org). Good luck! [:)]. – jonathanmarvens Aug 24 '12 at 05:54