summaryrefslogtreecommitdiffstats
path: root/examples/pykde-sampler/misc/gradientselect.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pykde-sampler/misc/gradientselect.py')
-rw-r--r--examples/pykde-sampler/misc/gradientselect.py24
1 files changed, 12 insertions, 12 deletions
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)