Thread
:
Python3: detect we're on Fremantle, Harmattan, SailfishOS
View Single Post
marmistrz
2016-08-13 , 15:11
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#
1
In C++ w/ Qt we'd use
Code:
int foo() { #if defined Q_WS_MAEMO5 /* */ #elif defined Q_WS_HARMATTAN /* */ ... #endif }
Can we do something like this in python3? I'd like to show a notification, which I can't do in a platform-agnostic way. (no libnotify on Fremantle)
__________________
If you want to support my work, you can donate by
PayPal
or
Flattr
Projects no longer actively developed:
here
Quote & Reply
|
marmistrz
View Public Profile
Send a private message to marmistrz
Visit marmistrz's homepage!
Find all posts by marmistrz