ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I'm a total newbie in Linux and only have limited experience of programming - in Hypercard, Javascript and some Python on the Mac platform. Now I want to get started with high-level programming and scripting on Ubuntu 10.04. I've tried some searches on the internet and in forums to no avail, so I hope I can get some useful pointers in the right direction.
The project I have in mind is fairly simple: I want to create an image viewer window that I can bring up on a RAW image file in Nautilus - with the help of dcraw, to inspect the image at 100% without going into a separate application. The viewer should have a button that if clicked, would then convert the file to a TIFF, again using dcraw. That's it, that's all there is to it.
My initial impression is that I should be able to achieve this using Python and GTK widgets. Am I right? How can I find the commands and structures I will need to work with? If someone could give me basic info to get me started I would greatly appreciate it.
I'm a total newbie in Linux and only have limited experience of programming - in Hypercard, Javascript and some Python on the Mac platform. Now I want to get started with high-level programming and scripting on Ubuntu 10.04. I've tried some searches on the internet and in forums to no avail, so I hope I can get some useful pointers in the right direction.
The project I have in mind is fairly simple: I want to create an image viewer window that I can bring up on a RAW image file in Nautilus - with the help of dcraw, to inspect the image at 100% without going into a separate application. The viewer should have a button that if clicked, would then convert the file to a TIFF, again using dcraw. That's it, that's all there is to it.
My initial impression is that I should be able to achieve this using Python and GTK widgets. Am I right? How can I find the commands and structures I will need to work with? If someone could give me basic info to get me started I would greatly appreciate it.
Strictly speaking, wxWidgets is a different than grk+ toolkit, though under Linux it often "sits" on top of gtk+. There is also wxX11 - that one does not use gtk+.
Other toolkits - of course, Qt, with Python bindings if desired.
Thanks, guys, that's very helpful. I'm now looking at wxWidgets, their site does seem easier to get started with than my previous attempts at researching GTK+. Just to be sure, out of the three toolkits mentioned - wxWidgets, GTK+, QT - which would be my best choice? I wouldn't want to be caught out by any gotchas later.
Thanks, guys, that's very helpful. I'm now looking at wxWidgets, their site does seem easier to get started with than my previous attempts at researching GTK+. Just to be sure, out of the three toolkits mentioned - wxWidgets, GTK+, QT - which would be my best choice? I wouldn't want to be caught out by any gotchas later.
Qt. But make sure it looks fine on a Gnome desktop.
Personally, I prefer GTK+ (but I'm a fairly low-level kinda' guy )
...
gtk+ is full of reinvented wheels making it look as a high level thingy. And historically gtk+ used to be a hack which feels until now while Qt looks to me as an orderly project from the very beginning.
Ha, the irony... I came across the Wikipedia page on pyGTK which had a script for a Hello World window... I copied it into a file and it worked! So for now I'm going with GTK+. Considering my needs are quite basic, I hope I'll be fine. I like the fact it works 'out of the box', nothing new to install. I'm reading the pyGTK FAQ at the moment, which isn't the best teaching resource, but then I'll get started with the reference. I'm sure to be posting more questions as I go along. Thanks for all the input, it's much appreciated.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.