summaryrefslogtreecommitdiffstats
path: root/python/pykde/examples/pykde-sampler/misc/passivepop.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/pykde/examples/pykde-sampler/misc/passivepop.py')
-rw-r--r--python/pykde/examples/pykde-sampler/misc/passivepop.py43
1 files changed, 0 insertions, 43 deletions
diff --git a/python/pykde/examples/pykde-sampler/misc/passivepop.py b/python/pykde/examples/pykde-sampler/misc/passivepop.py
deleted file mode 100644
index 81d383af..00000000
--- a/python/pykde/examples/pykde-sampler/misc/passivepop.py
+++ /dev/null
@@ -1,43 +0,0 @@
-from qt import Qt, QFrame, QHBoxLayout, QVBoxLayout, QLabel, SIGNAL
-from kdeui import KPassivePopup, KTextEdit, KPushButton
-from kdecore import KGlobal, KIcon
-
-iconName = 'popup'
-labelText = 'KPassivePopup'
-docParts = ('kdeui', 'KPassivePopup')
-helpText = ('Examples of the KPassivePopup widget.')
-
-
-class MainFrame(QFrame):
- def __init__(self, parent=None):
- QFrame.__init__(self, parent)
- self.help = KTextEdit(helpText, '', self)
- self.button = KPushButton('Show Passive Popups', self)
-
- layout = QVBoxLayout(self, 4)
- layout.addWidget(self.help, 10)
- buttonLayout = QHBoxLayout(layout, 4)
- buttonLayout.addWidget(self.button, 1)
- buttonLayout.addStretch(10)
- layout.addStretch(10)
-
-
- self.connect(self.button, SIGNAL('clicked()'), self.showPopups)
-
-
- def showPopups(self):
- ## no support for all of the 3.5 calls
- pop = KPassivePopup.message('Hello, <i>KPassivePopup</i>', self)
- pop.setTimeout(3000)
- pop.show()
-
-
- pos = pop.pos()
- pos.setY(pos.y() + pop.height() + 10)
-
- ico = KGlobal.instance().iconLoader().loadIcon('help', KIcon.NoGroup,
- KIcon.SizeSmall)
- pop = KPassivePopup.message('<b>Hello</b>', 'With Icons', ico, self)
- pop.setTimeout(3000)
- pop.show()
- pop.move(pos)