summaryrefslogtreecommitdiffstats
path: root/examples/pykde-sampler/misc
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pykde-sampler/misc')
-rw-r--r--examples/pykde-sampler/misc/__init__.py8
-rw-r--r--examples/pykde-sampler/misc/gradientselect.py24
-rw-r--r--examples/pykde-sampler/misc/passivepop.py10
-rw-r--r--examples/pykde-sampler/misc/window_info.py10
4 files changed, 26 insertions, 26 deletions
diff --git a/examples/pykde-sampler/misc/__init__.py b/examples/pykde-sampler/misc/__init__.py
index 25780a4..f9b66ae 100644
--- a/examples/pykde-sampler/misc/__init__.py
+++ b/examples/pykde-sampler/misc/__init__.py
@@ -4,13 +4,13 @@ iconName = 'misc'
helpText = ("")
-from qt import QFrame, QVBoxLayout
+from qt import TQFrame, TQVBoxLayout
from tdeui import KTextEdit
-class MainFrame(QFrame):
+class MainFrame(TQFrame):
def __init__(self, parent=None):
- QFrame.__init__(self, parent)
- layout = QVBoxLayout(self)
+ TQFrame.__init__(self, parent)
+ layout = TQVBoxLayout(self)
self.text = KTextEdit(helpText, '', self)
layout.addWidget(self.text, 1)
diff --git a/examples/pykde-sampler/misc/gradientselect.py b/examples/pykde-sampler/misc/gradientselect.py
index 5ef911d..0adb2ea 100644
--- a/examples/pykde-sampler/misc/gradientselect.py
+++ b/examples/pykde-sampler/misc/gradientselect.py
@@ -1,4 +1,4 @@
-from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL, QColor, QSizePolicy, QLabel
+from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL, TQColor, TQSizePolicy, TQLabel
from tdecore import i18n
from tdeui import KPushButton, KGradientSelector, KTextEdit, KDualColorButton, KColorPatch
@@ -11,36 +11,36 @@ helpText = ("An example of the KGradientSelector widget."
)
-class MainFrame(QFrame):
+class MainFrame(TQFrame):
def __init__(self, parent=None):
- QFrame.__init__(self, parent)
+ TQFrame.__init__(self, parent)
self.help = KTextEdit(helpText, '', self)
self.selector = KGradientSelector(self)
- self.dualLabel = QLabel('Select Colors:', self)
+ self.dualLabel = TQLabel('Select Colors:', self)
- self.startColor = QColor('red')
- self.finishColor = QColor('blue')
+ self.startColor = TQColor('red')
+ self.finishColor = TQColor('blue')
self.selector.setColors(self.startColor, self.finishColor)
self.selector.setText('Start', 'Finish')
self.dualButton = KDualColorButton(self.startColor, self.finishColor, self)
- self.dualButton.setSizePolicy(QSizePolicy(QSizePolicy.Maximum,
- QSizePolicy.Maximum))
+ self.dualButton.setSizePolicy(TQSizePolicy(TQSizePolicy.Maximum,
+ TQSizePolicy.Maximum))
- layout = QVBoxLayout(self, 4)
+ layout = TQVBoxLayout(self, 4)
layout.addWidget(self.help, 20)
- buttonLayout = QHBoxLayout(layout, 4)
+ buttonLayout = TQHBoxLayout(layout, 4)
buttonLayout.addWidget(self.dualLabel, 0)
buttonLayout.addWidget(self.dualButton, 1)
layout.addWidget(self.selector, 10)
- self.connect(self.dualButton, SIGNAL('fgChanged(const QColor &)'),
+ self.connect(self.dualButton, SIGNAL('fgChanged(const TQColor &)'),
self.selector.setFirstColor)
- self.connect(self.dualButton, SIGNAL('bgChanged(const QColor &)'),
+ self.connect(self.dualButton, SIGNAL('bgChanged(const TQColor &)'),
self.selector.setSecondColor)
self.connect(self.selector, SIGNAL('valueChanged(int)'),
self.updateValue)
diff --git a/examples/pykde-sampler/misc/passivepop.py b/examples/pykde-sampler/misc/passivepop.py
index d38b4ec..8a2b2e8 100644
--- a/examples/pykde-sampler/misc/passivepop.py
+++ b/examples/pykde-sampler/misc/passivepop.py
@@ -1,4 +1,4 @@
-from qt import Qt, QFrame, QHBoxLayout, QVBoxLayout, QLabel, SIGNAL
+from qt import TQt, TQFrame, TQHBoxLayout, TQVBoxLayout, TQLabel, SIGNAL
from tdeui import KPassivePopup, KTextEdit, KPushButton
from tdecore import KGlobal, KIcon
@@ -8,15 +8,15 @@ docParts = ('tdeui', 'KPassivePopup')
helpText = ('Examples of the KPassivePopup widget.')
-class MainFrame(QFrame):
+class MainFrame(TQFrame):
def __init__(self, parent=None):
- QFrame.__init__(self, parent)
+ TQFrame.__init__(self, parent)
self.help = KTextEdit(helpText, '', self)
self.button = KPushButton('Show Passive Popups', self)
- layout = QVBoxLayout(self, 4)
+ layout = TQVBoxLayout(self, 4)
layout.addWidget(self.help, 10)
- buttonLayout = QHBoxLayout(layout, 4)
+ buttonLayout = TQHBoxLayout(layout, 4)
buttonLayout.addWidget(self.button, 1)
buttonLayout.addStretch(10)
layout.addStretch(10)
diff --git a/examples/pykde-sampler/misc/window_info.py b/examples/pykde-sampler/misc/window_info.py
index 497aa39..daef2e0 100644
--- a/examples/pykde-sampler/misc/window_info.py
+++ b/examples/pykde-sampler/misc/window_info.py
@@ -1,7 +1,7 @@
-from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL
+from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL
from tdeui import KWindowInfo, KPushButton, KTextEdit
from tdecore import i18n, KApplication
@@ -10,14 +10,14 @@ labelText = 'KWindowInfo'
helpText = ''
-class MainFrame(QFrame):
+class MainFrame(TQFrame):
def __init__(self, parent):
- QFrame.__init__(self, parent)
+ TQFrame.__init__(self, parent)
self.button = KPushButton(i18n('Show Message'), self)
self.help = KTextEdit(helpText, '', self)
- layout = QVBoxLayout(self, 4)
+ layout = TQVBoxLayout(self, 4)
layout.addWidget(self.help)
- buttonlayout = QHBoxLayout(layout, 4)
+ buttonlayout = TQHBoxLayout(layout, 4)
buttonlayout.addWidget(self.button)
buttonlayout.addStretch(1)
layout.addStretch(1)