[Solved] Gateway desktop background notice message is god-awful

Should be taken care of.

#!/usr/bin/python
# -*- coding: utf-8 -*-

import sys
from PyQt4 import QtGui, QtCore

f = open("/home/user/first_use_check", "r")
check = f.read()
f.close()
#print(("Before click", check))
if check != "0":
    sys.exit()


class Notice(QtGui.QDialog):

    def __init__(self):

        super(Notice, self).__init__()

        self.initUI()

    def initUI(self):

        cb = QtGui.QCheckBox('Do not show this message again', self)
        cb.move(25, 230)
        cb.stateChanged.connect(self.checkState)

        OKbtn = QtGui.QPushButton('OK', self)
        OKbtn.clicked.connect(QtCore.QCoreApplication.instance().quit)
        OKbtn.resize(OKbtn.sizeHint())
        OKbtn.move(270, 260)

        lb = QtGui.QLabel(
"""The previous text is now obsolete. You can type lines of any length, it results as one paragraph per line. For example, you could write the story of you life in a single line (if you had a simple life).

Just enter a blank line

to separate the paragraphs.

Work in progress to automatically adjust the size of the window and the size of the text label depending on the text size.


""", self)
        lb.setGeometry(0, 0, 550, 190)  # window vsize -110.
        lb.setWordWrap(True)
        lb.move(25, 20)

        self.resize(600, 300)
        #self.center()
        self.setWindowTitle('First use notice')
        self.show()

    def checkState(self, state):

        f = open("/home/user/first_use_check", "w")
        f.write(str(state))
        f.close()
        #print(("After click ", str(state)))

    def center(self):

        self.resize(False)
        qr = self.frameGeometry()
        cp = QtGui.QDesktopWidget().availableGeometry().center()
        qr.moveCenter(cp)
        self.move(qr.topLeft())


def main():

    app = QtGui.QApplication(sys.argv)
    ex = Notice()
    sys.exit(app.exec_())

if __name__ == '__main__':
    main()