import platform

RUNNING_IN_HELL = platform.system() == 'Windows'
RUNNING_IN_STEVE_JOBS = platform.system() == 'Darwin'
RUNNING_IN_GANOO_LOONIX = platform.system() == 'Linux'
@@ -8,16 +8,111 @@
 platform
+%0Aimport io%0A%0Afrom PyQt5.QtCore import *%0Afrom PyQt5.QtWidgets import * %0Afrom PyQt5.QtGui import *
 %0A%0ARUNNIN
@@ -262,8 +262,242 @@
  'Linux'
+%0A%0Adef Pixmap2StringIO(pixmap):%0A%0A    byteArray = QByteArray()%0A    buffer = QBuffer(byteArray)%0A%0A    buffer.open(QIODevice.WriteOnly)%0A    pixmap.save(buffer, %22PNG%22)%0A%0A    strio = io.StringIO(byteArray)%0A    strio.seek(0)%0A%0A    return strio%0A

Write Pixmap to a StringIO for uploading.