summaryrefslogtreecommitdiffstats
path: root/examples/pykde-sampler/misc/gradientselect.py
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-03 22:23:44 -0600
committerTimothy Pearson <[email protected]>2011-12-03 22:23:44 -0600
commit203ba231d0276943aae36111f9ec1e949f3c6a4c (patch)
treef039f7a5b5fc2da88a96876971bac580d87f6788 /examples/pykde-sampler/misc/gradientselect.py
parentfd35f4a8382b7d223bc0325b9ca3f88515778aa0 (diff)
downloadpytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.tar.gz
pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.zip
Initial TQt conversion
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)