|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
# Form implementation generated from reading ui file 'notify.ui'
|
|
|
|
#
|
|
|
|
# Created: Thu Apr 10 00:50:39 2008
|
|
|
|
# by: The PyQt User Interface Compiler (pyuic) 3.17.4
|
|
|
|
#
|
|
|
|
# WARNING! All changes made in this file will be lost!
|
|
|
|
|
|
|
|
|
|
|
|
import sys
|
|
|
|
from qt import *
|
|
|
|
from tdecore import KCmdLineArgs, KApplication
|
|
|
|
from tdecore import i18n
|
|
|
|
from tdeui import *
|
|
|
|
|
|
|
|
|
|
|
|
class NotifyWidget(QWidget):
|
|
|
|
def __init__(self,parent = None,name = None,fl = 0):
|
|
|
|
QWidget.__init__(self,parent,name,fl)
|
|
|
|
|
|
|
|
if not name:
|
|
|
|
self.setName("NotifyWidgetUI")
|
|
|
|
|
|
|
|
self.setSizePolicy(QSizePolicy(QSizePolicy.MinimumExpanding,QSizePolicy.MinimumExpanding,0,0,self.sizePolicy().hasHeightForWidth()))
|
|
|
|
self.setBaseSize(QSize(0,0))
|
|
|
|
|
|
|
|
NotifyWidgetUILayout = QGridLayout(self,1,1,11,6,"NotifyWidgetUILayout")
|
|
|
|
|
|
|
|
self.Icon = QLabel(self,"Icon")
|
|
|
|
self.Icon.setSizePolicy(QSizePolicy(QSizePolicy.Fixed,QSizePolicy.Fixed,0,0,self.Icon.sizePolicy().hasHeightForWidth()))
|
|
|
|
self.Icon.setScaledContents(1)
|
|
|
|
|
|
|
|
NotifyWidgetUILayout.addMultiCellWidget(self.Icon,0,1,0,0)
|
|
|
|
|
|
|
|
self.Text = QLabel(self,"Text")
|
|
|
|
|
|
|
|
NotifyWidgetUILayout.addWidget(self.Text,1,1)
|
|
|
|
|
|
|
|
self.Caption = QLabel(self,"Caption")
|
|
|
|
|
|
|
|
NotifyWidgetUILayout.addWidget(self.Caption,0,1)
|
|
|
|
|
|
|
|
self.languageChange()
|
|
|
|
|
|
|
|
self.resize(QSize(151,60).expandedTo(self.minimumSizeHint()))
|
|
|
|
self.clearWState(Qt.WState_Polished)
|
|
|
|
|
|
|
|
|
|
|
|
def languageChange(self):
|
|
|
|
self.setCaption(i18n("Form3"))
|
|
|
|
self.Text.setText(QString.null)
|
|
|
|
self.Caption.setText(i18n("<b>Powermanager:</b>"))
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
appname = ""
|
|
|
|
description = ""
|
|
|
|
version = ""
|
|
|
|
|
|
|
|
KCmdLineArgs.init (sys.argv, appname, description, version)
|
|
|
|
a = KApplication ()
|
|
|
|
|
|
|
|
QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
|
|
|
|
w = NotifyWidget()
|
|
|
|
a.setMainWidget(w)
|
|
|
|
w.show()
|
|
|
|
a.exec_loop()
|