Python Cross Platform

Nuances for cross-platform gui programming

Page 1 of 1

7 Replies - 1531 Views - Last Post: 24 August 2010 - 05:11 AM Rate Topic: -----

#1 icetnet  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 20-June 07

Python Cross Platform

Posted 17 August 2010 - 06:26 AM

Sorry that this is a newbie type question...
We have a lot of python code and frameworks that are doing administrative automation tasks. This code is used in mainframe Linux, standard Linux, and Windows (for both application and administration)
I want to standardize some of the framework code for internal IT use, but we are using both Linux and Windows workstations for management. What are the nuances of GUI programming across Windows and Linux (Red Hat and Ubuntu) with Python? What should I standardize on? What should I avoid?

Thanks.

Is This A Good Question/Topic? 0
  • +

Replies To: Python Cross Platform

#2 Motoma  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 452
  • View blog
  • Posts: 796
  • Joined: 08-June 10

Re: Python Cross Platform

Posted 17 August 2010 - 06:30 AM

For cross-platform GUI programming I would strongly recommend sticking to Tkinter.
Was This Post Helpful? 0
  • +
  • -

#3 icetnet  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 20-June 07

Re: Python Cross Platform

Posted 17 August 2010 - 07:42 AM

View PostMotoma, on 17 August 2010 - 05:30 AM, said:

For cross-platform GUI programming I would strongly recommend sticking to Tkinter.



What experience do you have with the cross-platform aspect? Can I expect a sort of write once, run anywhere?
Was This Post Helpful? 0
  • +
  • -

#4 Motoma  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 452
  • View blog
  • Posts: 796
  • Joined: 08-June 10

Re: Python Cross Platform

Posted 17 August 2010 - 07:52 AM

My experience is that there are a number of Python GUI toolkits, each having their own caveats. Many claim to be cross platform, but suffer from issues like visual inconsistencies, absurd installation requirements, or lack of particular platform support.

Tkinter is nice because it is part of the base Python install (nothing additional to install), is based on a well established GUI toolkit (Tk), and can be ported to other languages if necessary.
Was This Post Helpful? 1
  • +
  • -

#5 lattyware  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 3
  • View blog
  • Posts: 56
  • Joined: 08-August 05

Re: Python Cross Platform

Posted 17 August 2010 - 08:17 AM

I write a lot with the GTK, and it is cross platform. It does, however, have visual problems under Windows (I think depending on how the user sets up their install), and also requires an install of the GTK or a massive py2exe executable, either of which isn't user-friendly.

I have heard that QT is better in this regard, but havn't used it myself.
Was This Post Helpful? 1
  • +
  • -

#6 icetnet  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 20-June 07

Re: Python Cross Platform

Posted 17 August 2010 - 10:31 AM

Thanks,

I am just looking for basic windowing at the moment. Tkinter might be just what I'm looking for. I started looking at QT and quickly became overcome due to lack of time to investigate it.
Any other suggestions would be great.

Motoma, lattyware. I really appreciate it.
Was This Post Helpful? 0
  • +
  • -

#7 been_1990  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 63
  • Joined: 20-February 10

Re: Python Cross Platform

Posted 17 August 2010 - 02:38 PM

In my opinion Nokia's QT is the best cross-platform library ever. It's just great.
Was This Post Helpful? 0
  • +
  • -

#8 soldner  Icon User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 30
  • Joined: 07-December 09

Re: Python Cross Platform

Posted 24 August 2010 - 05:11 AM

http://wiki.python.o.../GuiProgramming is Python's list of GUIs. However for cross-app, Tkinter is probably the best solution since in comes included with Python. There are some decnet manuls out there and plenty of examples.

I have read it is not the prettiest or the most fancy, but neither am I.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1