Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Think Python: GUI programming with Python?

 
Qunfeng Wang
Ranch Hand
Posts: 434
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see there is a chapter about GUI programming in your book. What's the capability of python in GUI programming? It's about different platforms, OS, and screens. Does Python work well in this area?
 
Pedro Neves
Ranch Hand
Posts: 64
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
qunfeng wang wrote:I see there is a chapter about GUI programming in your book. What's the capability of python in GUI programming? It's about different platforms, OS, and screens. Does Python work well in this area?


As far as i know python works like Java. It is transformed to bytecode and then interpreted.
Python runs on different platforms and OS (i think you just have to ajust your python VM). To know some more visit: http://tech.blog.aknin.name/2010/04/02/pythons-innards-introduction/

All i told you about python is what i heard and could not be accurate..
 
Allen Downey
Author
Greenhorn
Posts: 25
Java Python Ubuntu
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are several GUI libraries for Python. I primarily use tkinter, but wxPython is big, too. With Jython you can use all the Java GUI libraries, too.

As Pedro said, Python compiles into bytecode which runs on an interpreter, and the interpreter runs pretty much everywhere. So, portability++

Allen
 
Pedro Neves
Ranch Hand
Posts: 64
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want a book to learn about tkinter i think you can use "an-introduction-to-tkinter". I'm not a python expert.. But as far as i know it seems to be a good book for beginners (including me of course ;))

Kind regards
 
Red Smith
Ranch Hand
Posts: 136
1
Netscape Opera Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
qunfeng wang wrote:I see there is a chapter about GUI programming in your book. What's the capability of python in GUI programming? It's about different platforms, OS, and screens. Does Python work well in this area?


There are a couple of popular cross-platform C++ GUI libraries - QT and wxWidgets - and one that is for C (GTK+). Python has interfaces to all three. But none of those interfaces (nor the GUI library) comes with the standard Python distribution. However, there is a cross-platform GUI library called TK which was originally developed for the scripting language Tcl. Both Perl and Python have created interfaces to this library. In the case of Python the interface is called Tkinter. And, both TK and Tkinter come with the standard Python distribution. The book Think Python does have a chapter on Tkinter.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic