Programming environment selection.
Hi All. I'm wondering what programming enviroment to use for following: GUI interface for user (linux/KDE/Gnome), very basic, nothing fancy. Also I need MySQL access from the SW. Yes, it is mostly a basic database application, and I need also to produce PDF in the end. I can use for example PHP as a script in the end just for converting the final output. I've done it with PHP and Apache, but the differences with various browsers makes it look odd sometimes, and also the limitations of HTML makes it not-so-easy to use. Maybe something like QT or similar? I could try various languages that I have with my SuSE 9.0, but I'm relying on the high level of knowledge among You out there to save time. Jaska.
I'm wondering what programming enviroment to use for following:
GUI interface for user (linux/KDE/Gnome), very basic, nothing fancy. Also I need MySQL access from the SW.
You don't give too many details on what you're trying to do or whether it's for you own use or a commercial product, etc. Expect answers to be of a general nature. For basic GUI building the best solution by far (IMHO) is Tcl/Tk. What can be achieved in 20 lines of Tcl is quite astonishing. You mention Qt, and PyQt is an option if you can accept the licencing terms. It's considerably lower level, and hence much harder and slower work than Tcl/Tk. From what you say it's also probably overkill for what you need. I gave up with it because I found it inefficient for my needs, and it crashes mysteriously every so often which is seriously annoying. If you choose Tcl/Tk you need some MySQL bindings. Start here: http://mini.net/tcl/mysql. Alternatively you might prefer Perl/Tk. The Perl DBI database interface is second to none, but the interface to the Tk GUI toolkit sucks rocks. Perl/Tk is pretty much unusable to someone experienced with Tcl/Tk. Perhaps a good compromise is Python and Tkinter. Python is a fine language and has a good MySQL binding module. Once again, though, the Tk Toolkit binding isn't great. Which to choose? If the GUI is important and you envisage doing lots of maintenance to it, use Tcl/Tk with the MySQL binding. If the database interaction is the main part of the project go for Perl or Python and suffer the lousy GUI interface. If it were me, and the project allowed it, I'd write the application logic in Perl or Python as command line tools, then bolt a Tcl/Tk front end onto it. Don't dismiss this method - an awful lot of Linux tools are structured like that. --
eatapple core dump
participants (2)
-
Derek Fountain
-
jaska