I'm looking for tools for Perl GUI programming on Windows for educational/in-house development, mostly science related.
My first choice was PerlQt. A friend of mine was developing with Qt and C++ so I expected getting some help from him. Also Qt has a GUI creator and Linux has nice integration with Perl. Unfortunately, I failed to make it work on Windows. I searched for other options and am still not clear after search. This is what I've got so far.
I could managed to install them and succeeded to show "Hello, world". Yet, I can't decide which one to go and the online information sometimes looks contradict each other.
Would you compare the tools in terms of human efficiency (easy to read and write codes), computational efficiency and the availability of GUI builder?
Self promo for my perl module IUP :
For real cross platform GUI programming I would suggest Prima
or Tk
. Neither look great, but they work.
Still, I think you might be better served (hehe) by using a web front-end than a true GUI these days; this is easy using a web-framework. I would suggest Mojolicious
though other people do like Dancer
. My primary reason for suggesting Mojo over Dancer is that Mojo comes with lots of functionality in one tiny package. Then again, this is the reason that others would recommend Dancer, so that's a toss.
A final consideration is that Mojo comes with WebSockets out of the box. This makes it rather easy for your webapp to feel more like a true application, talking back to the server and getting responses without reloading.
Edit: I now have a good example of a desktop application written with a Perl/Mojo backend and a web-frontent: Azawawi's Farabi
. It is a text-editor, geared towards writing Perl. It's GUI is the browser, making it a simple cross-platform editor. I recommend it as a starting point for similar tasks.
I have an experience with PerlTk and wxPerl. wxPerl is rather decent toolkit which I can recommend. There is also a GUI builder available wxGlade
The few applications I had in Tk taught me to hate that toolkit wholeheartedly:
Here is a good overview of widget toolkits- many of which provide wrappers to popular programming languages:
http://en.wikipedia.org/wiki/List_of_widget_toolkits
I recommend [wxwidgets][1]
aka wxwindows
, or a browser based solution (e.g. XULrunner) or a pure Javascript+HTML5 based solution. At the moment I am working on a cross-platform tool with only a basic console UI, which then uses websockets and HTML5 + SVG for a more complex UI rendition and UX. To make the web-content dynamic I use a simple template-engine.
( Personally, for overview questions, I had good experience to put the term wikipedia
and list of
somewhere in the search query of ones trusted search engine. Kudos to the diligent wikipedia community.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With