diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-03-13 05:43:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-03-13 05:43:39 +0000 |
commit | 19ae07d0d443ff8b777f46bcbe97119483356bfd (patch) | |
tree | dae169167c23ba7c61814101995de21d6abac2e8 /powermanager/tooltip.py | |
download | tde-guidance-19ae07d0d443ff8b777f46bcbe97119483356bfd.tar.gz tde-guidance-19ae07d0d443ff8b777f46bcbe97119483356bfd.zip |
Added KDE3 version of KDE Guidance utilities
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kde-guidance@1102646 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'powermanager/tooltip.py')
-rw-r--r-- | powermanager/tooltip.py | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/powermanager/tooltip.py b/powermanager/tooltip.py new file mode 100644 index 0000000..37b62f3 --- /dev/null +++ b/powermanager/tooltip.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- + +# Form implementation generated from reading ui file 'tooltip.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 kdecore import KCmdLineArgs, KApplication +from kdecore import i18n +from kdeui import * + +from kdeui import * + +class ToolTip(QWidget): + def __init__(self,parent = None,name = None,fl = 0): + QWidget.__init__(self,parent,name,fl) + + if not name: + self.setName("ToolTip") + + self.setSizePolicy(QSizePolicy(QSizePolicy.MinimumExpanding,QSizePolicy.MinimumExpanding,0,0,self.sizePolicy().hasHeightForWidth())) + self.setMinimumSize(QSize(240,0)) + self.setBaseSize(QSize(200,0)) + + ToolTipLayout = QVBoxLayout(self,0,6,"ToolTipLayout") + + self.languageChange() + + self.resize(QSize(300,80).expandedTo(self.minimumSizeHint())) + self.clearWState(Qt.WState_Polished) + + + def languageChange(self): + self.setCaption(i18n("Form1")) + + + def ToolTip_destroyed(self,a0): + print "ToolTip.ToolTip_destroyed(QObject*): Not implemented yet" + +if __name__ == "__main__": + appname = "" + description = "" + version = "" + + KCmdLineArgs.init (sys.argv, appname, description, version) + a = KApplication () + + QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()")) + w = ToolTip() + a.setMainWidget(w) + w.show() + a.exec_loop() |