Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm new to Linux but not to app development. I come from a RealBasic on a Mac background.

I've accepted that I need to learn a new language to develop for Linux (since RB won't run on 64 bit distros and is a cloed proprietary language) but I want to make sure I pick the right one.

I've been looking at Python and was all set to go until I read that PyGTK is becoming obsolete with the introduction of GTK 3. Is this true? The Ubuntu developer website stills seems to recommend it with Glade for the UI but I want to make sure that I don't learn something that's on the way out!

share|improve this question
    
since you want to learn something new, you can have a look at wxPython and Pyside. I suggest wxPython as it will have advantage if you switch to C++ one day porting to wxWidgets is a breeze. Pyside is Python-for-QT thing but I have no experience at all with it! Just an advice –  Stefano Mtangoo Jun 17 '13 at 10:31

2 Answers 2

up vote 8 down vote accepted

The short answer is no.

PyGTK is being phased out and replaced with PyGObject as the widget set upgrades from GTK+2 to GTK+3. As of Oneiric all 'native' ubuntu applications run using the GTK+3 set.

On a personal note, fairly recently I started developing an application in Python, and having looked into it I decided to use Python3 with PySide (which is Qt4 instead of GTK+3) because I found that Python 3 would be the standard in the year or so it took me to write the program, and because Qt4 has a some very good documentation, and some first class development software (just have a trail of Qt 4 Designer...)

share|improve this answer
5  
Tip: Qt designer's GTK+ variety exists and is called glade. –  aquaherd Dec 4 '11 at 17:56
    
I find this very difficult to understand having come from a REALbasic sheltered development environment. All I want to be able to do is create an app whose GUI looks 'native' or theme-compliant on a modern version of Ubuntu or Mint. I also really want to be able to design the GUI in an editor (WYSIWYG) and link it with Python code. Given this extra information - what direction do you think I should head in? Is there a QT equivalent of Glade?? (also @aquaherd) –  Nootrino Dec 4 '11 at 18:48
1  
The Qt equivalent of Glade is Qt4 Designer. In Python you typically construct the interface, and then load it as class. For simple applications you can actually draw it all up in your own code, but for more complex GUI's it's easier to use a program like Qt Designer which will generate the code for you. Then all you need write is the code connecting the GUI events to your functions. –  thomas michael wallace Dec 4 '11 at 22:19
1  
On a note specifically about Qt: PySide and PyQt are both very similar libraries to link python to a Qt interface. The main difference between them is licensing (i.e. Pyqt does not allow you to release your code under the LGPL license) and the namespace (e.g. import PySide or import PyQt). I'm making this point as PyQt has a lot more tutorials and screencasts which are likely to help you on your way, but PySide is more preferable as it has a PPA, a less restrictive license, and is officially supported. –  thomas michael wallace Dec 4 '11 at 22:25
2  
I can't tell you if you should branch into the GTK+ or QT route, since both toolkits fit the bill, but since you asked about pygtk being relevant, I assumed you were already set on GTK+. If this is still the case and considering the REALbasic background, have a look at gambas which is a GTK+-ready Basic IDE. Mostly, having cross platform in mind, it pays to learn C/C++ and separate the user interface from the application logic and compile the front-end with a native toolkit. E.g. transmission, a bittorrent client that came from the Mac platform, uses quartz on Mac and GTK+ on the rest. –  aquaherd Dec 5 '11 at 14:50

PyGTK and pyGOBJECT are no longer the recommended method for developing apps for Ubuntu . Ubuntu developer website now recommends QML for the Ubuntu apps.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.