Re: Adapting code to multiple platforms

From: Peter Hansen (peter_at_engcorp.com)
Date: 03/12/05


Date: Sat, 12 Mar 2005 08:06:59 -0500

Simon John wrote:
> If you're using a GUI, then that may help you decode the platform too -
> for example wxPython has wx.Platform, there's also platform.platform()
> , sys.platform and os.name
>
> You could try import win32api and checking for an exception ;-)

(Winky noted) Just in case anyone thinks that last is a
useful idea, keep in mind that win32api is not installed
(with the standard distribution) but must be installed
with a separate download of the pywin32 package by Mark
Hammond.

-Peter



Relevant Pages

  • Re: Adapting code to multiple platforms
    ... If you're using a GUI, then that may help you decode the platform too - ... for example wxPython has wx.Platform, ...
    (comp.lang.python)
  • [ANN] froglogics Squish Supports Automated GUI Testing on Nokias Maemo Platform
    ... froglogic announced that Squish, its automated GUI testing tool, now ... Maemo is a software platform that is mostly based on open source code ... Squish is a professional, cross-platform GUI and regression testing ...
    (comp.software.testing)
  • Re: app with standalone gui and web interface
    ... > and separately creating a gui for the ... (for the wxPython version). ... installed could access the application as if it was a desktop app. ... fetch the same wxwml source, convert it into html/xml and send that to ...
    (comp.lang.python)
  • ANN: wxPython 2.7.1.1 released
    ... The 2.7.1.1 release of wxPython is now available for download at ... cases the native widgets are used on each platform. ... position of the window in screen coordinates, ... I've turned on the compile option for using the native toolbar ...
    (comp.lang.python)
  • ANN: wxPython 2.7.1.1 released
    ... The 2.7.1.1 release of wxPython is now available for download at ... cases the native widgets are used on each platform. ... position of the window in screen coordinates, ... I've turned on the compile option for using the native toolbar ...
    (comp.lang.python.announce)