Thanks for your replies!
To clarify my needs:
To really kill a network connection I use "/usr/bin/dbus-send --system
--dest=com.nokia.icd /com/nokia/icd_ui com.nokia.icd_ui.disconnect
boolean:true" on N900. For other platforms I would use the
platform-specific possibilities.
QSysInfo does not seem to give me the details I need.
The Python platform module returns more details:
platform.system()
platform.dist()
For maemo5 platform.dist() returns ('debian', 'testing/unstable', '').
To find out if it's Maemo5, the following approach would work:
try:
from PySide import QtMaemo5
ismaemo5 = True
except ImportError:
ismaemo5 = False
Is this the most elegant solution?
Greetings,
Dominik
On 02/09/2011 07:52 AM, Algis Kabaila wrote:
Python has a module called "platform". Its use is shown in the
About Box:
http://developer.qt.nokia.com/wiki/PySideSimplicissimus_Module_3_AboutBox
(URL has to be on one line. You can also access it from the
PySideSimplicissimus
http://developer.qt.nokia.com/wiki/PySide_Newbie_Tutorials
by clicking on the "About" link.
HTH,
OldAl.
On Wednesday 09 February 2011 10:04:11 Hartti Suomela wrote:
QSysInfo?
http://doc.qt.nokia.com/4.7/qsysinfo.html
On Tue, Feb 8, 2011 at 2:51 PM, Dominik Bartenstein
<d...@wahuu.at> wrote:
Hi,
is there a Qt-method that returns the platform the code is
running on (symbian, maemo, meego, win)? This is necessary
for using the proper functions for some platform-dependent
functionalities.
Thanks,
Dominik
_______________________________________________
PySide mailing list
PySide@lists.openbossa.org
http://lists.openbossa.org/listinfo/pyside