File: status.py

package info (click to toggle)
releaseforge 1.1-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,088 kB
  • ctags: 1,239
  • sloc: python: 13,801; makefile: 68; sh: 32
file content (15 lines) | stat: -rw-r--r-- 313 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from qt import *
from constants import EVENT_STATUS


class Status(QObject):
    def __init__(self):
        QObject.__init__(self)

    def set(self, message):
        ce = QCustomEvent(EVENT_STATUS)
        ce.setData(message)
        print qApp.allWidgets()
        qApp.postEvent(qApp, ce)

status = Status()