• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Think Python: GUI programming with Python?

 
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
Author
Posts: 28
Python Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 136
1
Netscape Opera Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic