1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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 tdecore import TDECmdLineArgs, TDEApplication
from tdecore import i18n
from tdeui import *
from tdeui 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 = ""
TDECmdLineArgs.init (sys.argv, appname, description, version)
a = TDEApplication ()
QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
w = ToolTip()
a.setMainWidget(w)
w.show()
a.exec_loop()
|