summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/aboutkde.pngbin33856 -> 33858 bytes
-rw-r--r--examples/astron.pngbin32329 -> 32333 bytes
-rw-r--r--examples/example_dcopexport.py14
-rw-r--r--examples/example_dcopext.py2
-rw-r--r--examples/kdeform1.ui12
-rw-r--r--examples/kdeform1.ui.h2
-rw-r--r--examples/kpartgui.dtd18
-rw-r--r--examples/menudemo.py12
-rw-r--r--examples/mimetype.py98
-rw-r--r--examples/pyKHTMLPart.py2
-rw-r--r--examples/pykde-sampler/HOWTO.samples6
-rw-r--r--examples/pykde-sampler/aboutkde.pngbin36986 -> 36991 bytes
-rw-r--r--examples/pykde-sampler/basic_widgets/__init__.py8
-rw-r--r--examples/pykde-sampler/basic_widgets/datepicker.py20
-rw-r--r--examples/pykde-sampler/basic_widgets/historycombo.py26
-rw-r--r--examples/pykde-sampler/contributors.txt2
-rw-r--r--examples/pykde-sampler/dialogs/__init__.py8
-rw-r--r--examples/pykde-sampler/dialogs/about/__init__.py8
-rw-r--r--examples/pykde-sampler/dialogs/about/aboutapp.py10
-rw-r--r--examples/pykde-sampler/dialogs/about/aboutkde.py10
-rw-r--r--examples/pykde-sampler/dialogs/bugreport.py10
-rw-r--r--examples/pykde-sampler/dialogs/color.py14
-rw-r--r--examples/pykde-sampler/dialogs/config.py20
-rw-r--r--examples/pykde-sampler/dialogs/edfind.py10
-rw-r--r--examples/pykde-sampler/dialogs/edreplace.py10
-rw-r--r--examples/pykde-sampler/dialogs/font.py18
-rw-r--r--examples/pykde-sampler/dialogs/input.py18
-rw-r--r--examples/pykde-sampler/dialogs/key.py10
-rw-r--r--examples/pykde-sampler/dialogs/msgbox.py10
-rw-r--r--examples/pykde-sampler/dialogs/passwd.py10
-rw-r--r--examples/pykde-sampler/dialogs/progress.py12
-rw-r--r--examples/pykde-sampler/dialogs/tip.py10
-rw-r--r--examples/pykde-sampler/icon_handling/__init__.py8
-rw-r--r--examples/pykde-sampler/icon_handling/misc.py12
-rw-r--r--examples/pykde-sampler/icon_handling/sizes.py10
-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
-rw-r--r--examples/pykde-sampler/qt_widgets/CONTRIB4
-rw-r--r--examples/pykde-sampler/qt_widgets/__init__.py12
-rw-r--r--examples/pykde-sampler/qt_widgets/table.py18
-rwxr-xr-xexamples/pykde-sampler/runner.py4
-rwxr-xr-xexamples/pykde-sampler/sampler.py28
-rw-r--r--examples/pykde-sampler/xwin/__init__.py10
-rw-r--r--examples/pytestimage.pngbin36986 -> 36991 bytes
-rw-r--r--examples/qxembed_example.pngbin22146 -> 22147 bytes
-rw-r--r--examples/qxembedexample.py54
-rw-r--r--examples/qxembedexample.ui20
-rw-r--r--examples/systray.py2
-rw-r--r--examples/uikmdi.py10
-rw-r--r--examples/uimodules/uidialogs.py62
-rw-r--r--examples/uimodules/uimenus.py6
-rw-r--r--examples/uimodules/uimisc.py64
-rw-r--r--examples/uimodules/uiwidgets.py160
-rw-r--r--examples/uimodules/uixml.py4
-rw-r--r--examples/uiqxembed.py22
-rw-r--r--examples/uisampler.py38
-rw-r--r--examples/xmlmenudemo.py10
59 files changed, 510 insertions, 510 deletions
diff --git a/examples/aboutkde.png b/examples/aboutkde.png
index 2b4681c..d24a562 100644
--- a/examples/aboutkde.png
+++ b/examples/aboutkde.png
Binary files differ
diff --git a/examples/astron.png b/examples/astron.png
index d2797ec..e099997 100644
--- a/examples/astron.png
+++ b/examples/astron.png
Binary files differ
diff --git a/examples/example_dcopexport.py b/examples/example_dcopexport.py
index 024b60f..70b4e9c 100644
--- a/examples/example_dcopexport.py
+++ b/examples/example_dcopexport.py
@@ -36,7 +36,7 @@ copyright holder.
import sys
from tdecore import KApplication, KCmdLineArgs, KAboutData
from dcopexport import DCOPExObj
-from qt import QString, QStringList
+from qt import TQString, TQStringList
"""
DCOPExObj provides all of the necessary machinery to DCOP-enable
@@ -72,13 +72,13 @@ class DeadParrotObject (DCOPExObj):
# the methods available from this app via DCOP
# addMethod (<signature>, <Python method>)
- self.addMethod ('QString getParrotType()', self.get_type)
- self.addMethod ('void setParrotType (QString)', self.set_type)
- self.addMethod ('QString squawk()', self.squawk)
- self.addMethod ('QStringList adjectives()', self.adjectives)
+ self.addMethod ('TQString getParrotType()', self.get_type)
+ self.addMethod ('void setParrotType (TQString)', self.set_type)
+ self.addMethod ('TQString squawk()', self.squawk)
+ self.addMethod ('TQStringList adjectives()', self.adjectives)
# set up object variables
- self.parrot_type = QString ("Norwegian Blue")
+ self.parrot_type = TQString ("Norwegian Blue")
def get_type (self):
return self.parrot_type
@@ -94,7 +94,7 @@ class DeadParrotObject (DCOPExObj):
"a stiff", "bereft of life", "rests in peace", "metabolic processes are now history",
"off the twig", "kicked the bucket", "shuffled off his mortal coil",
"run down his curtain", "joined the bleedin' choir invisible", "THIS IS AN EX-PARROT"]
- qadjList = QStringList ()
+ qadjList = TQStringList ()
for adj in adjList:
qadjList.append (adj)
diff --git a/examples/example_dcopext.py b/examples/example_dcopext.py
index c68cd35..a099904 100644
--- a/examples/example_dcopext.py
+++ b/examples/example_dcopext.py
@@ -31,7 +31,7 @@ import sys, time
import dcop
import dcopext
from tdecore import KApplication, KCmdLineArgs, KAboutData
-from qt import QString, QCString
+from qt import TQString, TQCString
diff --git a/examples/kdeform1.ui b/examples/kdeform1.ui
index 3d7a36e..46d5ff6 100644
--- a/examples/kdeform1.ui
+++ b/examples/kdeform1.ui
@@ -2,7 +2,7 @@
<class>Form1</class>
<comment>Python:#import all necessary widgets
Python:from kfile import KURLRequester</comment>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>Form1</cstring>
</property>
@@ -81,7 +81,7 @@ Python:from kfile import KURLRequester</comment>
</size>
</property>
</spacer>
- <widget class="QFrame" row="1" column="0" rowspan="1" colspan="6">
+ <widget class="TQFrame" row="1" column="0" rowspan="1" colspan="6">
<property name="name">
<cstring>Frame3</cstring>
</property>
@@ -171,7 +171,7 @@ Python:from kfile import KURLRequester</comment>
</spacer>
</grid>
</widget>
- <widget class="QGroupBox" row="2" column="0" rowspan="1" colspan="4">
+ <widget class="TQGroupBox" row="2" column="0" rowspan="1" colspan="4">
<property name="name">
<cstring>GroupBox1</cstring>
</property>
@@ -212,7 +212,7 @@ Python:from kfile import KURLRequester</comment>
</widget>
</grid>
</widget>
- <widget class="QGroupBox" row="3" column="0" rowspan="1" colspan="6">
+ <widget class="TQGroupBox" row="3" column="0" rowspan="1" colspan="6">
<property name="name">
<cstring>GroupBox3</cstring>
</property>
@@ -255,7 +255,7 @@ Python:from kfile import KURLRequester</comment>
</widget>
</grid>
</widget>
- <widget class="QGroupBox" row="2" column="4" rowspan="1" colspan="2">
+ <widget class="TQGroupBox" row="2" column="4" rowspan="1" colspan="2">
<property name="name">
<cstring>GroupBox4</cstring>
</property>
@@ -279,7 +279,7 @@ Python:from kfile import KURLRequester</comment>
</widget>
</grid>
</widget>
- <widget class="QPushButton" row="5" column="5">
+ <widget class="TQPushButton" row="5" column="5">
<property name="name">
<cstring>PushButton1</cstring>
</property>
diff --git a/examples/kdeform1.ui.h b/examples/kdeform1.ui.h
index 96bc326..ba590b4 100644
--- a/examples/kdeform1.ui.h
+++ b/examples/kdeform1.ui.h
@@ -1,7 +1,7 @@
/****************************************************************************
** ui.h extension file, included from the uic-generated form implementation.
**
-** If you wish to add, delete or rename slots use Qt Designer which will
+** If you wish to add, delete or rename slots use TQt Designer which will
** update this file, preserving your code. Create an init() slot in place of
** a constructor, and a destroy() slot in place of a destructor.
*****************************************************************************/
diff --git a/examples/kpartgui.dtd b/examples/kpartgui.dtd
index b338964..fa7354d 100644
--- a/examples/kpartgui.dtd
+++ b/examples/kpartgui.dtd
@@ -13,8 +13,8 @@
<!--The root element that must enclose all other tags in the document. -->
<!ELEMENT kpartgui ((ActionProperties | MenuBar | ToolBar | Merge | DefineGroup | MainWindow | StatusBar | Menu)*)>
<!ATTLIST kpartgui
- name CDATA #REQUIRED
- version CDATA #REQUIRED
+ name CDATA #RETQUIRED
+ version CDATA #RETQUIRED
library CDATA #IMPLIED
>
@@ -34,8 +34,8 @@
-- position: the position of the toolbar in the window
-- iconText: whether to show icon or text or both
-- iconSize: the size of the icons (0 for default, or usually 22 or 32)
- -- index: the index in the toolbar dock (see QMainWindow::moveToolBar)
- -- offset: the X offset in the toolbar dock (see QMainWindow::moveToolBar)
+ -- index: the index in the toolbar dock (see TQMainWindow::moveToolBar)
+ -- offset: the X offset in the toolbar dock (see TQMainWindow::moveToolBar)
-- newline: if true, this toolbar will start a new line (i.e. under the ones before it).
-- group: optional group name, for named merging (?)
-- hidden: if true, the toolbar is initially hidden. There should be a menu entry for showing it.
@@ -43,7 +43,7 @@
-->
<!ELEMENT ToolBar ((Action | Separator | ActionList | Merge | DefineGroup)*)>
<!ATTLIST ToolBar
- name CDATA #REQUIRED
+ name CDATA #RETQUIRED
fullWidth (true|false) "true"
position (top|bottom|left|right) "top"
iconText (icononly|textonly|icontextright|icontextbottom) #IMPLIED
@@ -59,7 +59,7 @@
<!-- A Menu such as the "File" or "Edit" menu. Can be used to define popup menus as well. -->
<!ELEMENT Menu (text?, (Action | ActionList | Separator | TearOffHandle | Merge | DefineGroup | Menu )*)>
<!ATTLIST Menu
- name CDATA #REQUIRED
+ name CDATA #RETQUIRED
group CDATA #IMPLIED
icon CDATA #IMPLIED
>
@@ -70,7 +70,7 @@
<!-- We defined only a few standard KAction properties here. Theoritically we can have
any property here -->
<!ATTLIST Action
- name CDATA #REQUIRED
+ name CDATA #RETQUIRED
group CDATA #IMPLIED
text CDATA #IMPLIED
whatsThis CDATA #IMPLIED
@@ -99,7 +99,7 @@
<!-- Specifies a dynamic list of actions, each of which can be changed by plugging/unplugging it -->
<!ELEMENT ActionList EMPTY>
<!ATTLIST ActionList
- name CDATA #REQUIRED
+ name CDATA #RETQUIRED
>
<!-- Not explicitly defined or in widely used yet. -->
@@ -118,5 +118,5 @@
accessible via the group attribute of other tags -->
<!ELEMENT DefineGroup EMPTY>
<!ATTLIST DefineGroup
- name CDATA #REQUIRED
+ name CDATA #RETQUIRED
>
diff --git a/examples/menudemo.py b/examples/menudemo.py
index b2b5603..8f605a2 100644
--- a/examples/menudemo.py
+++ b/examples/menudemo.py
@@ -41,7 +41,7 @@ True = not False
import sys
-from qt import QPopupMenu, SIGNAL, QLabel, QIconSet
+from qt import TQPopupMenu, SIGNAL, TQLabel, TQIconSet
from tdecore import KApplication, KCmdLineArgs, KAboutData, i18n, KIcon, KIconLoader, KShortcut
from tdeui import KMainWindow, KMessageBox, KStdAction, KAction, KToggleAction, KFontSizeAction, KFontAction, KRadioAction,\
@@ -98,7 +98,7 @@ class MainWin (KMainWindow):
# Need to assign an icon to actionMenu below
icons = KIconLoader ()
- iconSet = QIconSet (icons.loadIcon ("viewmag", KIcon.Toolbar))
+ iconSet = TQIconSet (icons.loadIcon ("viewmag", KIcon.Toolbar))
# Nested menus using KActions (also nested on toolbar)
self.actionMenu = KActionMenu ("Action Menu")
@@ -115,7 +115,7 @@ class MainWin (KMainWindow):
# self.radio3Action.setExclusiveGroup ("Radio")
def initMenus (self):
- fileMenu = QPopupMenu (self)
+ fileMenu = TQPopupMenu (self)
self.newAction.plug (fileMenu)
self.openAction.plug (fileMenu)
fileMenu.insertSeparator ()
@@ -127,7 +127,7 @@ class MainWin (KMainWindow):
self.quitAction.plug (fileMenu)
self.menuBar ().insertItem (i18n ("&File"), fileMenu)
- editMenu = QPopupMenu (self)
+ editMenu = TQPopupMenu (self)
self.undoAction.plug (editMenu)
self.redoAction.plug (editMenu)
editMenu.insertSeparator ()
@@ -142,7 +142,7 @@ class MainWin (KMainWindow):
self.specialAction.plug (editMenu)
self.menuBar ().insertItem (i18n ("&Edit"), editMenu)
- demoMenu = QPopupMenu (self)
+ demoMenu = TQPopupMenu (self)
self.toggle1Action.plug (demoMenu)
self.toggle2Action.plug (demoMenu)
self.separateAction.plug (demoMenu)
@@ -196,7 +196,7 @@ class MainWin (KMainWindow):
# to the full width of the toolbar when the window is
# maximized (comment out the next two lines to see
# what happens)
- stretchlbl = QLabel ("", self.toolBar ())
+ stretchlbl = TQLabel ("", self.toolBar ())
self.toolBar ().setStretchableWidget (stretchlbl)
diff --git a/examples/mimetype.py b/examples/mimetype.py
index f88009c..5f7a18b 100644
--- a/examples/mimetype.py
+++ b/examples/mimetype.py
@@ -39,7 +39,7 @@ copyright holder.
import sys
-from qt import QWidget, QButtonGroup, Qt, QLabel, QListView, QListViewItem
+from qt import TQWidget, TQButtonGroup, TQt, TQLabel, TQListView, TQListViewItem
from tdecore import KApplication, KCmdLineArgs, KAboutData, KURL
from tdeui import KMainWindow, KTabCtl, KListBox
@@ -62,15 +62,15 @@ class MainWin (KMainWindow):
tabctl.show ()
-class OfferListTab (QWidget):
+class OfferListTab (TQWidget):
def __init__ (self, parent, name = ""):
- QWidget.__init__ (self, parent, name)
+ TQWidget.__init__ (self, parent, name)
self.setGeometry (0, 0, 500, 370)
- lvLbl = QLabel ("Offers - text/html", self)
+ lvLbl = TQLabel ("Offers - text/html", self)
lvLbl.setGeometry (10, 10, 150, 20)
- lv = QListView (self)
+ lv = TQListView (self)
lv.setSorting (-1)
lv.addColumn ("type_", 75)
lv.addColumn ("name", 100)
@@ -82,28 +82,28 @@ class OfferListTab (QWidget):
# insert list items in reverse order
pref = KServiceTypeProfile.preferredService ("Application", "image/jpeg")
- QListViewItem (lv, pref.type_ (), pref.name (), pref.exec_ (), pref.library ())
- QListViewItem (lv, "Preferred", "--------", "", "")
- QListViewItem (lv, "", "", "", "")
+ TQListViewItem (lv, pref.type_ (), pref.name (), pref.exec_ (), pref.library ())
+ TQListViewItem (lv, "Preferred", "--------", "", "")
+ TQListViewItem (lv, "", "", "", "")
trader = KTrader.self ()
slist = trader.query ("image/jpeg", "Type == 'Application'")
print "KTrader returned:", slist
for s in slist:
- lvi = QListViewItem (lv, s.type_ (), s.name (), s.exec_ (), s.library ())
+ lvi = TQListViewItem (lv, s.type_ (), s.name (), s.exec_ (), s.library ())
lv.show ()
-class KServiceTypeTab (QWidget):
+class KServiceTypeTab (TQWidget):
def __init__ (self, parent, name = ""):
- QWidget.__init__ (self, parent, name)
+ TQWidget.__init__ (self, parent, name)
self.setGeometry (0, 0, 500, 370)
- lvLbl = QLabel ("All Service Types", self)
+ lvLbl = TQLabel ("All Service Types", self)
lvLbl.setGeometry (10, 10, 250, 20)
- lv = QListView (self)
+ lv = TQListView (self)
lv.addColumn ("name", 150)
lv.addColumn ("desktopEntryPath", 300)
lv.setGeometry (10, 30, 500, 300)
@@ -112,20 +112,20 @@ class KServiceTypeTab (QWidget):
slist = KServiceType.allServiceTypes ()
for s in slist:
- lvi = QListViewItem (lv, s.name (), s.desktopEntryPath ())
+ lvi = TQListViewItem (lv, s.name (), s.desktopEntryPath ())
lv.show ()
-class KSycocaEntryTab (QWidget):
+class KSycocaEntryTab (TQWidget):
def __init__ (self, parent, name = ""):
- QWidget.__init__ (self, parent, name)
+ TQWidget.__init__ (self, parent, name)
grp = KServiceGroup.baseGroup ("screensavers")
self.setGeometry (0, 0, 500, 370)
- lvLbl = QLabel ("Entries - 'screensavers': " + grp.name ().latin1 (), self)
+ lvLbl = TQLabel ("Entries - 'screensavers': " + grp.name ().latin1 (), self)
lvLbl.setGeometry (10, 10, 250, 20)
- lv = QListView (self)
+ lv = TQListView (self)
lv.addColumn ("name", 150)
lv.addColumn ("entryPath", 300)
lv.setGeometry (10, 30, 500, 300)
@@ -134,19 +134,19 @@ class KSycocaEntryTab (QWidget):
slist = grp.entries (0, 0)
for s in slist:
- lvi = QListViewItem (lv, s.name (), s.entryPath ())
+ lvi = TQListViewItem (lv, s.name (), s.entryPath ())
lv.show ()
-class KServiceTab (QWidget):
+class KServiceTab (TQWidget):
def __init__ (self, parent, name = ""):
- QWidget.__init__ (self, parent, name)
+ TQWidget.__init__ (self, parent, name)
self.setGeometry (0, 0, 500, 370)
- lvLbl = QLabel ("All Services", self)
+ lvLbl = TQLabel ("All Services", self)
lvLbl.setGeometry (10, 10, 150, 20)
- lv = QListView (self)
+ lv = TQListView (self)
lv.addColumn ("type_", 75)
lv.addColumn ("name", 100)
lv.addColumn ("exec_", 200)
@@ -156,7 +156,7 @@ class KServiceTab (QWidget):
slist = KService.allServices ()
for s in slist:
- lvi = QListViewItem (lv, s.type_ (), s.name (), s.exec_ (), s.library ())
+ lvi = TQListViewItem (lv, s.type_ (), s.name (), s.exec_ (), s.library ())
lv.show ()
@@ -169,12 +169,12 @@ class KServiceTab (QWidget):
# print svc.library ()
-class KMimeTypeTab (QWidget):
+class KMimeTypeTab (TQWidget):
def __init__ (self, parent, name = ""):
- QWidget.__init__ (self, parent, name)
+ TQWidget.__init__ (self, parent, name)
self.setGeometry (0, 0, 500, 370)
- lbLbl = QLabel ("All Mimetypes", self)
+ lbLbl = TQLabel ("All Mimetypes", self)
lbLbl.setGeometry (10, 10, 150, 20)
lb = KListBox (self)
lb.setGeometry (10, 30, 200, 300)
@@ -192,61 +192,61 @@ class KMimeTypeTab (QWidget):
y = 10
mt = KMimeType.mimeType ("text/plain")
- mtlbl = QLabel ("KMimeType.mimeType ('text/plain')", self)
+ mtlbl = TQLabel ("KMimeType.mimeType ('text/plain')", self)
mtlbl.setGeometry (x, y, 250, 20)
- mtnamelbl = QLabel ("name", self)
+ mtnamelbl = TQLabel ("name", self)
mtnamelbl.setGeometry (x + 15, y + 20, 100, 20)
- mtname = QLabel (mt.name (), self)
+ mtname = TQLabel (mt.name (), self)
mtname.setGeometry (x + 120, y + 20, 100, 20)
- mtdesklbl = QLabel ("desktopEntryPath", self)
+ mtdesklbl = TQLabel ("desktopEntryPath", self)
mtdesklbl.setGeometry (x + 15, y + 40, 100, 20)
- mtdesk = QLabel (mt.desktopEntryPath (), self)
+ mtdesk = TQLabel (mt.desktopEntryPath (), self)
mtdesk.setGeometry (x + 120, y + 40, 150, 20)
y = y + 80
fp = KMimeType.findByPath ("mimetype.py")
- fplbl = QLabel ("KMimeType.findByPath ('mimetype.py')", self)
+ fplbl = TQLabel ("KMimeType.findByPath ('mimetype.py')", self)
fplbl.setGeometry (x, y, 250, 20)
- fpnamelbl = QLabel ("name", self)
+ fpnamelbl = TQLabel ("name", self)
fpnamelbl.setGeometry (x + 15, y + 20, 100, 20)
- fpname = QLabel (fp.name (), self)
+ fpname = TQLabel (fp.name (), self)
fpname.setGeometry (x + 120, y + 20, 100, 20)
- fpdesklbl = QLabel ("desktopEntryPath", self)
+ fpdesklbl = TQLabel ("desktopEntryPath", self)
fpdesklbl.setGeometry (x + 15, y + 40, 100, 20)
- fpdesk = QLabel (fp.desktopEntryPath (), self)
+ fpdesk = TQLabel (fp.desktopEntryPath (), self)
fpdesk.setGeometry (x + 120, y + 40, 150, 20)
y = y + 80
fu = KMimeType.findByURL (KURL ("file://mimetype.py"))
- fulbl = QLabel ("KMimeType.findByURL ('file://mimetype.py')", self)
+ fulbl = TQLabel ("KMimeType.findByURL ('file://mimetype.py')", self)
fulbl.setGeometry (x, y, 250, 20)
- funamelbl = QLabel ("name", self)
+ funamelbl = TQLabel ("name", self)
funamelbl.setGeometry (x + 15, y + 20, 100, 20)
- funame = QLabel (fu.name (), self)
+ funame = TQLabel (fu.name (), self)
funame.setGeometry (x + 120, y + 20, 100, 20)
- fudesklbl = QLabel ("desktopEntryPath", self)
+ fudesklbl = TQLabel ("desktopEntryPath", self)
fudesklbl.setGeometry (x + 15, y + 40, 100, 20)
- fudesk = QLabel (fu.desktopEntryPath (), self)
+ fudesk = TQLabel (fu.desktopEntryPath (), self)
fudesk.setGeometry (x + 120, y + 40, 150, 20)
y = y + 80
fc, acc = KMimeType.findByFileContent ("mimetype.py")
- fclbl = QLabel ("KMimeType.findByFileContent ('mimetype.py')", self)
+ fclbl = TQLabel ("KMimeType.findByFileContent ('mimetype.py')", self)
fclbl.setGeometry (x, y, 250, 20)
- fcnamelbl = QLabel ("name", self)
+ fcnamelbl = TQLabel ("name", self)
fcnamelbl.setGeometry (x + 15, y + 20, 100, 20)
- fcname = QLabel (fc.name (), self)
+ fcname = TQLabel (fc.name (), self)
fcname.setGeometry (x + 120, y + 20, 100, 20)
- fcdesklbl = QLabel ("desktopEntryPath", self)
+ fcdesklbl = TQLabel ("desktopEntryPath", self)
fcdesklbl.setGeometry (x + 15, y + 40, 100, 20)
- fcdesk = QLabel (fc.desktopEntryPath (), self)
+ fcdesk = TQLabel (fc.desktopEntryPath (), self)
fcdesk.setGeometry (x + 120, y + 40, 100, 20)
- fcacclbl = QLabel ("accuracy", self)
+ fcacclbl = TQLabel ("accuracy", self)
fcacclbl.setGeometry (x + 15, y + 60, 100, 20)
- fcacc = QLabel (str (acc), self)
+ fcacc = TQLabel (str (acc), self)
fcacc.setGeometry (x + 120, y + 60, 150, 20)
diff --git a/examples/pyKHTMLPart.py b/examples/pyKHTMLPart.py
index f028bb7..7873ad8 100644
--- a/examples/pyKHTMLPart.py
+++ b/examples/pyKHTMLPart.py
@@ -47,7 +47,7 @@ from tdecore import KCmdLineArgs, KURL, KApplication, i18n, KAboutData, BarIcon,
from tdeui import KMainWindow, KMessageBox, KAction, KStdAction, KKeyDialog, KEditToolbar
-from qt import QString, QStringList
+from qt import TQString, TQStringList
from kio import KTrader
diff --git a/examples/pykde-sampler/HOWTO.samples b/examples/pykde-sampler/HOWTO.samples
index 966a92c..0ccf630 100644
--- a/examples/pykde-sampler/HOWTO.samples
+++ b/examples/pykde-sampler/HOWTO.samples
@@ -38,15 +38,15 @@ In side the module, add the following:
the sample.
-- one of buildWidget, buildDialog, buildApp, MainFrame - callable (required)
+- one of buildWidget, buildDialog, buildApp, MainFrame - callable (retquired)
default: None
- example: MainFrame(QFrame): ...
+ example: MainFrame(TQFrame): ...
The sample module must contain a callable with one of these names.
The callable must accept a single positional parameter, the parent
widget.
- In most cases, it is sufficient to define a subclass of QFrame named
+ In most cases, it is sufficient to define a subclass of TQFrame named
'MainFrame'. To construct a more complex sample, define a function
with one of the other names.
diff --git a/examples/pykde-sampler/aboutkde.png b/examples/pykde-sampler/aboutkde.png
index 3bb4e68..2aa6d73 100644
--- a/examples/pykde-sampler/aboutkde.png
+++ b/examples/pykde-sampler/aboutkde.png
Binary files differ
diff --git a/examples/pykde-sampler/basic_widgets/__init__.py b/examples/pykde-sampler/basic_widgets/__init__.py
index 8a32c63..312f629 100644
--- a/examples/pykde-sampler/basic_widgets/__init__.py
+++ b/examples/pykde-sampler/basic_widgets/__init__.py
@@ -4,14 +4,14 @@ iconName = 'about_kde'
helpText = """KDE provides a large set of basic widgets for application use.
Select the children of this item to see for yourself."""
-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)
layout.addStretch(1)
diff --git a/examples/pykde-sampler/basic_widgets/datepicker.py b/examples/pykde-sampler/basic_widgets/datepicker.py
index d32fb45..b0f74c6 100644
--- a/examples/pykde-sampler/basic_widgets/datepicker.py
+++ b/examples/pykde-sampler/basic_widgets/datepicker.py
@@ -1,5 +1,5 @@
-from qt import QFrame, QStringList, QVBoxLayout, SIGNAL, QLabel, QSizePolicy, Qt
-from qttable import QTable
+from qt import TQFrame, TQStringList, TQVBoxLayout, SIGNAL, TQLabel, TQSizePolicy, TQt
+from qttable import TQTable
from tdeui import KTextEdit, KDatePicker, KDateWidget
@@ -17,26 +17,26 @@ A line edit has been added in the newer versions to allow the user to
select a date directly by entering numbers like 19990101 or 990101.
"""
-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.dateDisplay = KDateWidget(self)
- self.dateDisplay.setSizePolicy(QSizePolicy(QSizePolicy.Maximum,
- QSizePolicy.Maximum))
+ self.dateDisplay.setSizePolicy(TQSizePolicy(TQSizePolicy.Maximum,
+ TQSizePolicy.Maximum))
self.datePicker = KDatePicker(self)
- layout = QVBoxLayout(self)
+ layout = TQVBoxLayout(self)
layout.addWidget(self.help, 1)
- layout.addWidget(self.datePicker, 0, Qt.AlignHCenter)
+ layout.addWidget(self.datePicker, 0, TQt.AlignHCenter)
layout.addStretch(1)
- self.other = QLabel('Selected Date:', self)
+ self.other = TQLabel('Selected Date:', self)
layout.addWidget(self.other, 0)
layout.addWidget(self.dateDisplay, 2)
- self.connect(self.datePicker, SIGNAL('dateChanged(QDate)'),
+ self.connect(self.datePicker, SIGNAL('dateChanged(TQDate)'),
self.dateDisplay.setDate)
diff --git a/examples/pykde-sampler/basic_widgets/historycombo.py b/examples/pykde-sampler/basic_widgets/historycombo.py
index a71b72c..3b0797c 100644
--- a/examples/pykde-sampler/basic_widgets/historycombo.py
+++ b/examples/pykde-sampler/basic_widgets/historycombo.py
@@ -1,4 +1,4 @@
-from qt import Qt, QFrame, QHBoxLayout, QVBoxLayout, QStringList, QLabel, \
+from qt import TQt, TQFrame, TQHBoxLayout, TQVBoxLayout, TQStringList, TQLabel, \
SIGNAL, SLOT
from tdeui import KHistoryCombo, KTextEdit
@@ -15,37 +15,37 @@ helpText = ('An example of the KHistoryCombo widget.'
'slot to automatically add new items.')
-historyText = 'a quick brown fox jumps over the lazy dog'
+historyText = 'a tquick brown fox jumps over the lazy dog'
-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.historyCombo = KHistoryCombo(self)
- self.historySelectionLabel = QLabel('Selected value: ', self)
- self.historySelection = QLabel('(none)', self)
+ self.historySelectionLabel = TQLabel('Selected value: ', self)
+ self.historySelection = TQLabel('(none)', self)
- items = QStringList()
+ items = TQStringList()
for item in historyText.split():
items.append(item)
self.historyCombo.setHistoryItems(items, True)
- layout = QVBoxLayout(self, 4)
+ layout = TQVBoxLayout(self, 4)
layout.addWidget(self.help, 3)
layout.addStretch(1)
- selectionLayout = QHBoxLayout(layout, 4)
+ selectionLayout = TQHBoxLayout(layout, 4)
selectionLayout.addWidget(self.historySelectionLabel, 1)
- selectionLayout.addWidget(self.historySelection, 10, Qt.AlignLeft)
+ selectionLayout.addWidget(self.historySelection, 10, TQt.AlignLeft)
layout.addWidget(self.historyCombo, 0)
layout.addStretch(10)
- self.connect(self.historyCombo, SIGNAL('activated(const QString& )'),
- self.historyCombo, SLOT('addToHistory(const QString&)'))
+ self.connect(self.historyCombo, SIGNAL('activated(const TQString& )'),
+ self.historyCombo, SLOT('addToHistory(const TQString&)'))
self.connect(self.historyCombo, SIGNAL('cleared()'),
self.historyCleared)
- self.connect(self.historyCombo, SIGNAL('activated(const QString &)'),
+ self.connect(self.historyCombo, SIGNAL('activated(const TQString &)'),
self.historySelection.setText)
def historyCleared(self):
diff --git a/examples/pykde-sampler/contributors.txt b/examples/pykde-sampler/contributors.txt
index 18b9a81..5063545 100644
--- a/examples/pykde-sampler/contributors.txt
+++ b/examples/pykde-sampler/contributors.txt
@@ -1,4 +1,4 @@
# author, contributions, email
-Phil Thompson, For PyQt and SIP, phil@riverbankcomputing.co.uk
+Phil Thompson, For PyTQt and SIP, phil@riverbankcomputing.co.uk
Jim Bublitz, For PyKDE, jbublitz@nwinternet.com
diff --git a/examples/pykde-sampler/dialogs/__init__.py b/examples/pykde-sampler/dialogs/__init__.py
index cdec131..07a731c 100644
--- a/examples/pykde-sampler/dialogs/__init__.py
+++ b/examples/pykde-sampler/dialogs/__init__.py
@@ -6,13 +6,13 @@ helpText = ("KDE provides a convenient set of dialog boxes for application use.
"Select the children of this item to see for yourself.")
-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/dialogs/about/__init__.py b/examples/pykde-sampler/dialogs/about/__init__.py
index d406216..ea1ad17 100644
--- a/examples/pykde-sampler/dialogs/about/__init__.py
+++ b/examples/pykde-sampler/dialogs/about/__init__.py
@@ -5,12 +5,12 @@ helpText = ("KDE has multiple dialog types to display information about your "
"applicaiton and environment. They provide a tremendous amount of functionality "
"and consistency. They're easy to use, and they're good for the environment!")
-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/dialogs/about/aboutapp.py b/examples/pykde-sampler/dialogs/about/aboutapp.py
index 585db60..820d50f 100644
--- a/examples/pykde-sampler/dialogs/about/aboutapp.py
+++ b/examples/pykde-sampler/dialogs/about/aboutapp.py
@@ -1,7 +1,7 @@
iconName = 'about_kde'
labelText = 'KAboutApplication'
-from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL
+from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL
from tdecore import i18n
from tdeui import KAboutApplication, KPushButton, KTextEdit
@@ -11,14 +11,14 @@ helpText = ("Typically available via the applications 'Help' menu, this "
docParts = ('tdeui', 'KAboutDialog')
-class MainFrame(QFrame):
+class MainFrame(TQFrame):
def __init__(self, parent=None):
- QFrame.__init__(self, parent)
+ TQFrame.__init__(self, parent)
self.button = KPushButton(i18n('About Application'), 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)
diff --git a/examples/pykde-sampler/dialogs/about/aboutkde.py b/examples/pykde-sampler/dialogs/about/aboutkde.py
index 08dd93e..dc7390c 100644
--- a/examples/pykde-sampler/dialogs/about/aboutkde.py
+++ b/examples/pykde-sampler/dialogs/about/aboutkde.py
@@ -1,7 +1,7 @@
iconName = 'about_kde'
labelText = 'KAboutKDE'
-from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL
+from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL
from tdecore import i18n
from tdeui import KAboutKDE, KPushButton, KTextEdit
@@ -10,14 +10,14 @@ helpText = ("Typically available via the applications 'Help' menu, this "
"dialog presents the user with the standard KDE About dialog.")
-class MainFrame(QFrame):
+class MainFrame(TQFrame):
def __init__(self, parent=None):
- QFrame.__init__(self, parent)
+ TQFrame.__init__(self, parent)
self.button = KPushButton(i18n('About KDE'), 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)
diff --git a/examples/pykde-sampler/dialogs/bugreport.py b/examples/pykde-sampler/dialogs/bugreport.py
index 7cb3340..76fe0ae 100644
--- a/examples/pykde-sampler/dialogs/bugreport.py
+++ b/examples/pykde-sampler/dialogs/bugreport.py
@@ -6,7 +6,7 @@ labelText = 'KBugReport'
##~ specifies what we want.
##~ docItemName = 'KBugReport'
-from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL
+from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL
from tdecore import i18n
from tdeui import KAboutDialog, KPushButton, KBugReport, KTextEdit
@@ -15,14 +15,14 @@ helpText = ("KDE provides a way to report bugs from applications. This dialog"
"is typically available from the application 'Help' menu.")
-class MainFrame(QFrame):
+class MainFrame(TQFrame):
def __init__(self, parent=None):
- QFrame.__init__(self, parent)
+ TQFrame.__init__(self, parent)
self.button = KPushButton(i18n('Show Bug Report Dialog'), 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)
diff --git a/examples/pykde-sampler/dialogs/color.py b/examples/pykde-sampler/dialogs/color.py
index dba8eb6..738c000 100644
--- a/examples/pykde-sampler/dialogs/color.py
+++ b/examples/pykde-sampler/dialogs/color.py
@@ -2,7 +2,7 @@ iconName = 'colorize'
labelText = 'KColorDialog'
-from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL
+from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL
from tdecore import i18n
from tdeui import KPushButton, KColorDialog, KColorPatch, KTextEdit
@@ -12,15 +12,15 @@ helpText = ("KDE provides a nifty common color selection dialog."
"connected to the KColorPatch area below.")
-class MainFrame(QFrame):
+class MainFrame(TQFrame):
def __init__(self, parent=None):
- QFrame.__init__(self, parent)
+ TQFrame.__init__(self, parent)
self.button = KPushButton(i18n('Show Color Dialog'), self)
self.help = KTextEdit(helpText, '', self)
self.patch = KColorPatch(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.addWidget(self.patch, 10)
@@ -31,12 +31,12 @@ class MainFrame(QFrame):
dlg = KColorDialog(self)
## this connection is made so that there's a default color
- self.connect(dlg, SIGNAL('colorSelected(const QColor &)'),
+ self.connect(dlg, SIGNAL('colorSelected(const TQColor &)'),
self.patch.setPaletteBackgroundColor)
dlg.setColor(self.patch.paletteBackgroundColor())
## this connection is the one that changes the patch color to match
## the color selected in the dialog
- self.connect(dlg, SIGNAL('colorSelected(const QColor &)'),
+ self.connect(dlg, SIGNAL('colorSelected(const TQColor &)'),
self.patch.setColor)
dlg.exec_loop()
diff --git a/examples/pykde-sampler/dialogs/config.py b/examples/pykde-sampler/dialogs/config.py
index 503c49a..8700cff 100644
--- a/examples/pykde-sampler/dialogs/config.py
+++ b/examples/pykde-sampler/dialogs/config.py
@@ -1,5 +1,5 @@
-from qt import QFrame, QHBoxLayout, QVBoxLayout, QTimer, SIGNAL, QString
+from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQTimer, SIGNAL, TQString
from tdecore import i18n, KConfigSkeleton
from tdeui import KPushButton, KConfigDialog, KTextEdit
@@ -12,7 +12,7 @@ helpText = ("")
class SampleSettings(KConfigSkeleton):
def __init__(self):
KConfigSkeleton.__init__(self)
- self.anyString = QString()
+ self.anyString = TQString()
self.setCurrentGroup("Strings")
self.addItemString("Test", self.anyString, "Default Value")
@@ -21,15 +21,15 @@ class SampleSettings(KConfigSkeleton):
self.addItemBool("Any Bool", False)
-class MainFrame(QFrame):
+class MainFrame(TQFrame):
def __init__(self, parent=None):
- QFrame.__init__(self, parent)
+ TQFrame.__init__(self, parent)
self.button = KPushButton(i18n('Show Config Dialog'), 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)
@@ -46,14 +46,14 @@ class MainFrame(QFrame):
dlg.exec_loop()
-class StringsSettings(QFrame):
+class StringsSettings(TQFrame):
def __init__(self, parent=None):
- QFrame.__init__(self, parent)
+ TQFrame.__init__(self, parent)
self.text = KTextEdit('A String', '', self)
-class BoolSettings(QFrame):
+class BoolSettings(TQFrame):
def __init__(self, parent=None):
- QFrame.__init__(self, parent)
+ TQFrame.__init__(self, parent)
self.text = KTextEdit('A Bool', '', self)
diff --git a/examples/pykde-sampler/dialogs/edfind.py b/examples/pykde-sampler/dialogs/edfind.py
index 434c85f..0dabb2f 100644
--- a/examples/pykde-sampler/dialogs/edfind.py
+++ b/examples/pykde-sampler/dialogs/edfind.py
@@ -1,5 +1,5 @@
-from qt import QFrame, QHBoxLayout, QVBoxLayout, QTimer, SIGNAL, QFont, QString
+from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQTimer, SIGNAL, TQFont, TQString
from tdecore import i18n
from tdeui import KPushButton, KEdFind, KTextEdit
@@ -9,15 +9,15 @@ docParts = ('tdeui', 'KEdFind')
helpText = ("An example of the KEdFind dialog.")
-class MainFrame(QFrame):
+class MainFrame(TQFrame):
def __init__(self, parent=None):
- QFrame.__init__(self, parent)
+ TQFrame.__init__(self, parent)
self.button = KPushButton(i18n('Show Edit Find Dialog'), 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)
diff --git a/examples/pykde-sampler/dialogs/edreplace.py b/examples/pykde-sampler/dialogs/edreplace.py
index 8ba705a..2cbc03e 100644
--- a/examples/pykde-sampler/dialogs/edreplace.py
+++ b/examples/pykde-sampler/dialogs/edreplace.py
@@ -1,4 +1,4 @@
-from qt import QFrame, QHBoxLayout, QVBoxLayout, QTimer, SIGNAL, QFont, QString
+from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQTimer, SIGNAL, TQFont, TQString
from tdecore import i18n
from tdeui import KPushButton, KEdReplace, KTextEdit
@@ -8,15 +8,15 @@ docParts = ('tdeui', 'KEdReplace')
helpText = ("An example of the KEdReplace dialog.")
-class MainFrame(QFrame):
+class MainFrame(TQFrame):
def __init__(self, parent=None):
- QFrame.__init__(self, parent)
+ TQFrame.__init__(self, parent)
self.button = KPushButton(i18n('Show Edit Find Dialog'), 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)
diff --git a/examples/pykde-sampler/dialogs/font.py b/examples/pykde-sampler/dialogs/font.py
index efa9af7..194524c 100644
--- a/examples/pykde-sampler/dialogs/font.py
+++ b/examples/pykde-sampler/dialogs/font.py
@@ -1,5 +1,5 @@
-from qt import QFrame, QHBoxLayout, QVBoxLayout, QTimer, SIGNAL, QFont, QString
+from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQTimer, SIGNAL, TQFont, TQString
from tdecore import i18n
from tdeui import KPushButton, KFontDialog, KTextEdit
@@ -16,27 +16,27 @@ helpText = ("KDE provides a font dialog box for users to select (can you "
fontText = """Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam
ante. Nam in mauris. Vestibulum ante velit, condimentum vel, congue
sit amet, lobortis a, dui. Fusce auctor, quam non pretium nonummy, leo
-ante imperdiet libero, id lobortis erat erat quis eros. Pellentesque
+ante imperdiet libero, id lobortis erat erat tquis eros. Pellentesque
habitant morbi tristique senectus et netus et malesuada fames ac
turpis egestas. Cras ut metus. Vivamus suscipit, sapien id tempor
elementum, nunc quam malesuada dolor, sit amet luctus sapien odio vel
ligula. Integer scelerisque, risus a interdum vestibulum, felis ipsum
-pharetra eros, nec nonummy libero justo quis risus. Vestibulum
+pharetra eros, nec nonummy libero justo tquis risus. Vestibulum
tincidunt, augue vitae suscipit congue, sem dui adipiscing nulla, ut
nonummy arcu quam ac sem. Nulla in metus. Phasellus neque.
"""
-class MainFrame(QFrame):
+class MainFrame(TQFrame):
def __init__(self, parent=None):
- QFrame.__init__(self, parent)
+ TQFrame.__init__(self, parent)
self.button = KPushButton(i18n('Show Font Dialog'), self)
self.help = KTextEdit(helpText, '', self)
self.example = KTextEdit(fontText, '', 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.addWidget(self.example, 10)
@@ -45,8 +45,8 @@ class MainFrame(QFrame):
def showFontDialog(self):
- font = QFont(self.example.font())
- string = QString()
+ font = TQFont(self.example.font())
+ string = TQString()
accepted, other = KFontDialog.getFontAndText(font, string, False, self)
if accepted:
self.example.setFont(font)
diff --git a/examples/pykde-sampler/dialogs/input.py b/examples/pykde-sampler/dialogs/input.py
index c922178..8d9312f 100644
--- a/examples/pykde-sampler/dialogs/input.py
+++ b/examples/pykde-sampler/dialogs/input.py
@@ -1,7 +1,7 @@
iconName = 'editclear'
labelText = 'KInputDialog'
-from qt import QFrame, QGridLayout, QLabel, QStringList, SIGNAL
+from qt import TQFrame, TQGridLayout, TQLabel, TQStringList, SIGNAL
from tdecore import i18n
from tdeui import KPushButton, KInputDialog, KTextEdit
@@ -11,42 +11,42 @@ helpText = ("KInputDialog allows the programmer to display a simple dialog to "
"list item from the user.")
-class MainFrame(QFrame):
+class MainFrame(TQFrame):
items = ['Apples', 'Bananas', 'Mangos', 'Oranges', 'Pears', ]
def __init__(self, parent=None):
- QFrame.__init__(self, parent)
+ TQFrame.__init__(self, parent)
self.help = KTextEdit(helpText, '', self)
- layout = QGridLayout(self, 5, 2, 4) # five rows, two cols, four px spacing
+ layout = TQGridLayout(self, 5, 2, 4) # five rows, two cols, four px spacing
layout.setRowStretch(0, 10)
layout.setColStretch(1, 10)
layout.addMultiCellWidget(self.help, 0, 1, 0, 1)
button = KPushButton(i18n('Get Text'), self)
self.connect(button, SIGNAL('clicked()'), self.getText)
- self.getTextLabel = QLabel('text value', self)
+ self.getTextLabel = TQLabel('text value', self)
layout.addWidget(button, 2, 0)
layout.addWidget(self.getTextLabel, 2, 1)
layout.setRowStretch(2, 0)
button = KPushButton(i18n('Get Integer'), self)
self.connect(button, SIGNAL('clicked()'), self.getInt)
- self.getIntLabel = QLabel('0', self)
+ self.getIntLabel = TQLabel('0', self)
layout.addWidget(self.getIntLabel, 3, 1)
layout.addWidget(button, 3, 0)
layout.setRowStretch(3, 0)
button = KPushButton(i18n('Get Double'), self)
self.connect(button, SIGNAL('clicked()'), self.getDouble)
- self.getDoubleLabel = QLabel('0.0', self)
+ self.getDoubleLabel = TQLabel('0.0', self)
layout.addWidget(self.getDoubleLabel, 4, 1)
layout.addWidget(button, 4, 0)
layout.setRowStretch(4, 0)
button = KPushButton(i18n('Get Item'), self)
self.connect(button, SIGNAL('clicked()'), self.getItem)
- self.getItemLabel = QLabel(self.items[0], self)
+ self.getItemLabel = TQLabel(self.items[0], self)
layout.addWidget(button, 5, 0)
layout.addWidget(self.getItemLabel, 5, 1)
layout.setRowStretch(5, 0)
@@ -79,7 +79,7 @@ class MainFrame(QFrame):
title = 'KInputDialog.getItem Dialog'
label = 'Select an item:'
current = self.items.index('%s' % self.getItemLabel.text())
- selections = QStringList()
+ selections = TQStringList()
for item in self.items:
selections.append(item)
value, accepted = KInputDialog.getItem(title, label, selections, current)
diff --git a/examples/pykde-sampler/dialogs/key.py b/examples/pykde-sampler/dialogs/key.py
index d267733..8c88537 100644
--- a/examples/pykde-sampler/dialogs/key.py
+++ b/examples/pykde-sampler/dialogs/key.py
@@ -1,7 +1,7 @@
iconName = 'configure_shortcuts'
labelText = 'KKeyDialog'
-from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL
+from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL
from tdecore import i18n
from tdeui import KPushButton, KKeyDialog, KTextEdit
@@ -11,14 +11,14 @@ helpText = ("Configuring keystroke shortcuts is simple with KActions and the "
"sampler application.")
-class MainFrame(QFrame):
+class MainFrame(TQFrame):
def __init__(self, parent=None):
- QFrame.__init__(self, parent)
+ TQFrame.__init__(self, parent)
self.button = KPushButton(i18n('Show Key Configuration Dialog'), 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)
diff --git a/examples/pykde-sampler/dialogs/msgbox.py b/examples/pykde-sampler/dialogs/msgbox.py
index 57d4bc1..b22c03f 100644
--- a/examples/pykde-sampler/dialogs/msgbox.py
+++ b/examples/pykde-sampler/dialogs/msgbox.py
@@ -5,7 +5,7 @@ from random import random
from traceback import print_exc
from StringIO import StringIO
-from qt import QFrame, QGridLayout, QLabel, QStringList, SIGNAL
+from qt import TQFrame, TQGridLayout, TQLabel, TQStringList, SIGNAL
from tdecore import i18n
from tdeui import KGuiItem, KPushButton, KMessageBox, KTextEdit
@@ -15,7 +15,7 @@ helpText = ("The KMessageBox Python class wraps the static methods of its C++ "
"docs for KMessageBox for a full list.")
-class MainFrame(QFrame):
+class MainFrame(TQFrame):
msg = 'Do you like food?'
caption = 'Simple Question'
err = 'Some kind of error happened, but it could be worse!'
@@ -23,8 +23,8 @@ class MainFrame(QFrame):
items = ['Apples', 'Bananas', 'Cantaloupe', 'Mangos', 'Oranges', 'Pears', ]
def __init__(self, parent=None):
- QFrame.__init__(self, parent)
- items = QStringList()
+ TQFrame.__init__(self, parent)
+ items = TQStringList()
for item in self.items:
items.append(item)
self.items = items
@@ -35,7 +35,7 @@ class MainFrame(QFrame):
self.help = KTextEdit(helpText, '', self)
- layout = QGridLayout(self, 5, 2, 4)
+ layout = TQGridLayout(self, 5, 2, 4)
layout.setRowStretch(0, 10)
layout.setColStretch(1, 10)
layout.addMultiCellWidget(self.help, 0, 1, 0, 1)
diff --git a/examples/pykde-sampler/dialogs/passwd.py b/examples/pykde-sampler/dialogs/passwd.py
index 946d7ec..3081c3d 100644
--- a/examples/pykde-sampler/dialogs/passwd.py
+++ b/examples/pykde-sampler/dialogs/passwd.py
@@ -1,4 +1,4 @@
-from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL
+from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL
from tdecore import i18n
from tdeui import KPushButton, KPasswordDialog, KTextEdit
@@ -11,14 +11,14 @@ helpText = ("KDE provides two variations on the password dialog. The simple "
"confirm the first entry.")
-class MainFrame(QFrame):
+class MainFrame(TQFrame):
def __init__(self, parent=None):
- QFrame.__init__(self, parent)
+ TQFrame.__init__(self, parent)
self.button = KPushButton(i18n('Show Password Dialog'), 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)
diff --git a/examples/pykde-sampler/dialogs/progress.py b/examples/pykde-sampler/dialogs/progress.py
index bfa9d02..948ad78 100644
--- a/examples/pykde-sampler/dialogs/progress.py
+++ b/examples/pykde-sampler/dialogs/progress.py
@@ -2,7 +2,7 @@ iconName = 'go'
labelText = 'KProgressDialog'
-from qt import QFrame, QHBoxLayout, QVBoxLayout, QTimer, SIGNAL
+from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQTimer, SIGNAL
from tdecore import i18n
from tdeui import KPushButton, KProgressDialog, KTextEdit
@@ -11,14 +11,14 @@ helpText = """KDE provides a ready-built dialog to display a bit of text and a
progress bar."""
-class MainFrame(QFrame):
+class MainFrame(TQFrame):
def __init__(self, parent=None):
- QFrame.__init__(self, parent)
+ TQFrame.__init__(self, parent)
self.button = KPushButton(i18n('Show Progress Dialog'), 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)
@@ -29,7 +29,7 @@ class MainFrame(QFrame):
helpText)
dlg.progressBar().setTotalSteps(20)
dlg.progressBar().setFormat('% complete: %p - value: %v - maximum: %m')
- timer = QTimer(self)
+ timer = TQTimer(self)
self.connect(timer, SIGNAL('timeout()'), self.updateProgress)
timer.start(250, False)
dlg.exec_loop()
diff --git a/examples/pykde-sampler/dialogs/tip.py b/examples/pykde-sampler/dialogs/tip.py
index 1718c10..b86d3fd 100644
--- a/examples/pykde-sampler/dialogs/tip.py
+++ b/examples/pykde-sampler/dialogs/tip.py
@@ -3,7 +3,7 @@ labelText = 'KTipDialog'
import os
-from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL
+from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL
from tdecore import i18n
from tdeui import KPushButton, KTipDatabase, KTipDialog, KTextEdit
@@ -11,14 +11,14 @@ from tdeui import KPushButton, KTipDatabase, KTipDialog, KTextEdit
helpText = ("The KDE standard Tip-of-the-Day dialog.")
-class MainFrame(QFrame):
+class MainFrame(TQFrame):
def __init__(self, parent=None):
- QFrame.__init__(self, parent)
+ TQFrame.__init__(self, parent)
self.button = KPushButton(i18n('Show Tip-of-the-Day Dialog'), 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)
diff --git a/examples/pykde-sampler/icon_handling/__init__.py b/examples/pykde-sampler/icon_handling/__init__.py
index bf27f0a..2a525ac 100644
--- a/examples/pykde-sampler/icon_handling/__init__.py
+++ b/examples/pykde-sampler/icon_handling/__init__.py
@@ -6,13 +6,13 @@ helpText = ("KDE icons are nice. "
"Select the children of this item to see for yourself.")
-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/icon_handling/misc.py b/examples/pykde-sampler/icon_handling/misc.py
index 5167362..cab3571 100644
--- a/examples/pykde-sampler/icon_handling/misc.py
+++ b/examples/pykde-sampler/icon_handling/misc.py
@@ -3,7 +3,7 @@ iconName = 'icons'
labelText = 'Misc.'
-from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL, QPoint
+from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL, TQPoint
from tdecore import i18n
from tdeui import KAboutDialog, KPushButton, KBugReport, KTextEdit
from tdeui import KRootPermsIcon, KWritePermsIcon
@@ -13,19 +13,19 @@ helpText = ("Samples for the KRootPermsIcon and KWritePermsIcon classes."
"These icons don't do anything.")
-class MainFrame(QFrame):
+class MainFrame(TQFrame):
def __init__(self, parent=None):
- QFrame.__init__(self, parent)
+ TQFrame.__init__(self, parent)
- layout = QVBoxLayout(self, 4)
+ layout = TQVBoxLayout(self, 4)
layout.setAutoAdd(True)
self.help = KTextEdit(helpText, '', self)
self.root = KRootPermsIcon(None)
- self.root.reparent(self, 0, QPoint(0,0), True)
+ self.root.reparent(self, 0, TQPoint(0,0), True)
import os
fn = os.path.abspath('.')
print fn
self.write = KWritePermsIcon(fn)
- self.write.reparent(self, 0, QPoint(0,0), True)
+ self.write.reparent(self, 0, TQPoint(0,0), True)
diff --git a/examples/pykde-sampler/icon_handling/sizes.py b/examples/pykde-sampler/icon_handling/sizes.py
index 37fabaf..af7226d 100644
--- a/examples/pykde-sampler/icon_handling/sizes.py
+++ b/examples/pykde-sampler/icon_handling/sizes.py
@@ -3,7 +3,7 @@ iconName = 'icons'
labelText = 'Icon Sizing'
-from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL
+from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL
from tdecore import i18n
from tdeui import KAboutDialog, KPushButton, KBugReport, KTextEdit
@@ -11,14 +11,14 @@ from tdeui import KAboutDialog, KPushButton, KBugReport, KTextEdit
helpText = ("")
-class MainFrame(QFrame):
+class MainFrame(TQFrame):
def __init__(self, parent=None):
- QFrame.__init__(self, parent)
+ TQFrame.__init__(self, parent)
self.button = KPushButton(i18n('Show Bug Report Dialog'), 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)
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)
diff --git a/examples/pykde-sampler/qt_widgets/CONTRIB b/examples/pykde-sampler/qt_widgets/CONTRIB
index cbdf61a..e9bfd3d 100644
--- a/examples/pykde-sampler/qt_widgets/CONTRIB
+++ b/examples/pykde-sampler/qt_widgets/CONTRIB
@@ -340,7 +340,7 @@ tdeui,KXMLGUIBuilder,,,
tdeui,KXMLGUIClient,,,
tdeui,KXMLGUIFactory,,,
tdeui,KXYSelector,,,
-tdeui,QXEmbed,,,
+tdeui,TQXEmbed,,,
tdeui,testKActionList,,,
kfile,KApplicationPropsPlugin,,,
kfile,KBindingPropsPlugin,,,
@@ -503,7 +503,7 @@ kmdi,KMdiWin32IconButton,,,
kparts,KParts,,,
kparts,createReadOnlyPart,,,
kparts,createReadWritePart,,,
-kparts,testQMapQCStringInt,,,
+kparts,testTQMapTQCStringInt,,,
kspell,KS_ADD,,,
kspell,KS_CANCEL,,,
kspell,KS_CLIENT_ASPELL,,,
diff --git a/examples/pykde-sampler/qt_widgets/__init__.py b/examples/pykde-sampler/qt_widgets/__init__.py
index 3bbf9dc..fdd6539 100644
--- a/examples/pykde-sampler/qt_widgets/__init__.py
+++ b/examples/pykde-sampler/qt_widgets/__init__.py
@@ -1,17 +1,17 @@
-labelText = 'Qt Widgets'
+labelText = 'TQt Widgets'
iconName = 'designer'
-helpText = """Qt provides a rich set of widgets for application use.
+helpText = """TQt provides a rich set of widgets for application use.
Select the children of this item to see for yourself."""
-from qt import QFrame, QVBoxLayout, SIGNAL
+from qt import TQFrame, TQVBoxLayout, SIGNAL
from tdeui import KTextEdit
-class MainFrame(QFrame):
+class MainFrame(TQFrame):
def __init__(self, parent=None):
- QFrame.__init__(self, parent)
+ TQFrame.__init__(self, parent)
self.help = KTextEdit(helpText, '', self)
- layout = QVBoxLayout(self, 4)
+ layout = TQVBoxLayout(self, 4)
layout.addWidget(self.help)
layout.addStretch(1)
diff --git a/examples/pykde-sampler/qt_widgets/table.py b/examples/pykde-sampler/qt_widgets/table.py
index 9945b7e..4a689d2 100644
--- a/examples/pykde-sampler/qt_widgets/table.py
+++ b/examples/pykde-sampler/qt_widgets/table.py
@@ -1,32 +1,32 @@
-labelText = 'QTable'
+labelText = 'TQTable'
iconName = 'inline_table'
-helpText = """From the docs: 'The QTable class provides a flexible
+helpText = """From the docs: 'The TQTable class provides a flexible
editable table widget.'
"""
import csv
import os
-from qt import QFrame, QStringList, QVBoxLayout, SIGNAL
-from qttable import QTable
+from qt import TQFrame, TQStringList, TQVBoxLayout, SIGNAL
+from qttable import TQTable
from tdeui import KTextEdit
contrib = os.path.join(os.path.split(__file__)[0], 'CONTRIB')
-class MainFrame(QFrame):
+class MainFrame(TQFrame):
def __init__(self, parent=None):
- QFrame.__init__(self, parent)
+ TQFrame.__init__(self, parent)
self.help = KTextEdit(helpText, '', self)
data = csv.reader(open(contrib))
header = data.next()
items = [item for item in data]
- self.table = table = QTable(len(items), len(header), self)
- headers = QStringList()
+ self.table = table = TQTable(len(items), len(header), self)
+ headers = TQStringList()
for headertext in header:
headers.append(headertext)
table.setColumnLabels(headers)
@@ -36,7 +36,7 @@ class MainFrame(QFrame):
for col in cols:
table.setText(row, col, record[col])
- layout = QVBoxLayout(self, 4)
+ layout = TQVBoxLayout(self, 4)
layout.addWidget(self.help)
layout.addWidget(self.table)
layout.addStretch(1)
diff --git a/examples/pykde-sampler/runner.py b/examples/pykde-sampler/runner.py
index 43f89fd..e153fae 100755
--- a/examples/pykde-sampler/runner.py
+++ b/examples/pykde-sampler/runner.py
@@ -5,7 +5,7 @@
import sys
from tdecore import KApplication, KCmdLineArgs
from tdeui import KMainWindow
-from qt import QVBoxLayout
+from qt import TQVBoxLayout
## relative import -- cry me a river!
import about
@@ -14,7 +14,7 @@ import about
class SamplerRunnerWindow(KMainWindow):
def __init__(self, ctor):
KMainWindow.__init__(self)
- layout = QVBoxLayout(self)
+ layout = TQVBoxLayout(self)
layout.setAutoAdd(True)
self.widget = ctor(self)
diff --git a/examples/pykde-sampler/sampler.py b/examples/pykde-sampler/sampler.py
index 4625519..83a4979 100755
--- a/examples/pykde-sampler/sampler.py
+++ b/examples/pykde-sampler/sampler.py
@@ -10,9 +10,9 @@ import inspect
import os
import sys
-from qt import SIGNAL, SLOT, PYSIGNAL, Qt
-from qt import QVBoxLayout, QLabel, QPixmap, QSplitter, QFrame, QDialog
-from qt import QSizePolicy, QHBoxLayout, QSpacerItem, QPushButton
+from qt import SIGNAL, SLOT, PYSIGNAL, TQt
+from qt import TQVBoxLayout, TQLabel, TQPixmap, TQSplitter, TQFrame, TQDialog
+from qt import TQSizePolicy, TQHBoxLayout, TQSpacerItem, TQPushButton
from tdecore import i18n, KAboutData, KApplication, KCmdLineArgs, KGlobal
from tdecore import KGlobalSettings, KWin, KWinModule, KURL, KIcon
@@ -35,8 +35,8 @@ except (NameError, ):
__file__ = sys.argv[0]
-sigDoubleClicked = SIGNAL('doubleClicked(QListViewItem *)')
-sigViewItemSelected = SIGNAL('selectionChanged(QListViewItem *)')
+sigDoubleClicked = SIGNAL('doubleClicked(TQListViewItem *)')
+sigViewItemSelected = SIGNAL('selectionChanged(TQListViewItem *)')
sigSampleSelected = PYSIGNAL('sample selected')
blank = KURL('about:blank')
@@ -83,15 +83,15 @@ def buildPart(parent, query, constraint, writable=False):
-class CommonFrame(QFrame):
+class CommonFrame(TQFrame):
""" provides a modicum of reuse
"""
def __init__(self, parent):
- QFrame.__init__(self, parent)
- layout = QVBoxLayout(self)
+ TQFrame.__init__(self, parent)
+ layout = TQVBoxLayout(self)
layout.setAutoAdd(True)
- layout.setAlignment(Qt.AlignCenter | Qt.AlignVCenter)
+ layout.setAlignment(TQt.AlignCenter | TQt.AlignVCenter)
class SamplerFrame(CommonFrame):
@@ -243,9 +243,9 @@ class SamplerMainWindow(KMainWindow):
"""
def __init__(self, *args):
KMainWindow.__init__(self, *args)
- self.hSplitter = hSplit = QSplitter(Qt.Horizontal, self)
+ self.hSplitter = hSplit = TQSplitter(TQt.Horizontal, self)
self.samplesList = samplesList = SamplerListView(hSplit)
- self.vSplitter = vSplit = QSplitter(Qt.Vertical, hSplit)
+ self.vSplitter = vSplit = TQSplitter(TQt.Vertical, hSplit)
self.setCentralWidget(hSplit)
self.setIcon(getIcon('kmail'))
@@ -358,7 +358,7 @@ class SamplerMainWindow(KMainWindow):
"""
ret = KKeyDialog.configure(self.actionCollection(), self)
print ret
- if ret == QDialog.Accepted:
+ if ret == TQDialog.Accepted:
actions = self.actionCollection()
actions.writeShortcutSettings(None, appConfig())
@@ -398,7 +398,7 @@ class SamplerMainWindow(KMainWindow):
"""
target = self.sampleFrame
- label = QLabel(target)
+ label = TQLabel(target)
label.setPixmap(pixmap)
target.setWidget(label)
@@ -412,7 +412,7 @@ if __name__ == '__main__':
KCmdLineArgs.init(sys.argv, aboutdata)
app = KApplication()
- splashpix = QPixmap(os.path.join(lib.samplerpath, 'aboutkde.png'))
+ splashpix = TQPixmap(os.path.join(lib.samplerpath, 'aboutkde.png'))
splash = KSplashScreen(splashpix)
splash.resize(splashpix.size())
splash.show()
diff --git a/examples/pykde-sampler/xwin/__init__.py b/examples/pykde-sampler/xwin/__init__.py
index f9ff0b1..34787fd 100644
--- a/examples/pykde-sampler/xwin/__init__.py
+++ b/examples/pykde-sampler/xwin/__init__.py
@@ -4,13 +4,13 @@ iconName = 'kcmx'
helpText = """KDE and PyKDE allow interaction with the X Window system. Check
out the nifty samples below."""
-from qt import QFrame, QLabel, QVBoxLayout
+from qt import TQFrame, TQLabel, TQVBoxLayout
-class MainFrame(QFrame):
+class MainFrame(TQFrame):
def __init__(self, parent=None):
- QFrame.__init__(self, parent)
- layout = QVBoxLayout(self)
- self.text = QLabel(helpText, self)
+ TQFrame.__init__(self, parent)
+ layout = TQVBoxLayout(self)
+ self.text = TQLabel(helpText, self)
layout.addWidget(self.text, 1)
diff --git a/examples/pytestimage.png b/examples/pytestimage.png
index 3bb4e68..2aa6d73 100644
--- a/examples/pytestimage.png
+++ b/examples/pytestimage.png
Binary files differ
diff --git a/examples/qxembed_example.png b/examples/qxembed_example.png
index 55eb729..55c7df8 100644
--- a/examples/qxembed_example.png
+++ b/examples/qxembed_example.png
Binary files differ
diff --git a/examples/qxembedexample.py b/examples/qxembedexample.py
index 0e21631..ab33196 100644
--- a/examples/qxembedexample.py
+++ b/examples/qxembedexample.py
@@ -3,7 +3,7 @@
# Form implementation generated from reading ui file 'qxembedexample.ui'
#
# Created: Thu Apr 29 02:17:37 2004
-# by: The PyQt User Interface Compiler (pyuic) 3.11
+# by: The PyTQt User Interface Compiler (pyuic) 3.11
#
# WARNING! All changes made in this file will be lost!
@@ -11,61 +11,61 @@
from qt import *
-class QXEmbedExample(QWidget):
+class TQXEmbedExample(TQWidget):
def __init__(self,parent = None,name = None,fl = 0):
- QWidget.__init__(self,parent,name,fl)
+ TQWidget.__init__(self,parent,name,fl)
if not name:
- self.setName("QXEmbedExample")
+ self.setName("TQXEmbedExample")
- QXEmbedExampleLayout = QVBoxLayout(self,11,6,"QXEmbedExampleLayout")
+ TQXEmbedExampleLayout = TQVBoxLayout(self,11,6,"TQXEmbedExampleLayout")
- layout2 = QHBoxLayout(None,0,6,"layout2")
+ layout2 = TQHBoxLayout(None,0,6,"layout2")
self.appNameCombo = KComboBox(0,self,"appNameCombo")
- self.appNameCombo.setSizePolicy(QSizePolicy(QSizePolicy.Minimum,QSizePolicy.Fixed,0,0,self.appNameCombo.sizePolicy().hasHeightForWidth()))
+ self.appNameCombo.setSizePolicy(TQSizePolicy(TQSizePolicy.Minimum,TQSizePolicy.Fixed,0,0,self.appNameCombo.sizePolicy().hasHeightForWidth()))
layout2.addWidget(self.appNameCombo)
self.launchButton = KPushButton(self,"launchButton")
- self.launchButton.setSizePolicy(QSizePolicy(QSizePolicy.Minimum,QSizePolicy.Fixed,0,0,self.launchButton.sizePolicy().hasHeightForWidth()))
+ self.launchButton.setSizePolicy(TQSizePolicy(TQSizePolicy.Minimum,TQSizePolicy.Fixed,0,0,self.launchButton.sizePolicy().hasHeightForWidth()))
layout2.addWidget(self.launchButton)
- spacer1 = QSpacerItem(209,31,QSizePolicy.Expanding,QSizePolicy.Minimum)
+ spacer1 = TQSpacerItem(209,31,TQSizePolicy.Expanding,TQSizePolicy.Minimum)
layout2.addItem(spacer1)
- QXEmbedExampleLayout.addLayout(layout2)
+ TQXEmbedExampleLayout.addLayout(layout2)
- self.line1 = QFrame(self,"line1")
- self.line1.setFrameShape(QFrame.HLine)
- self.line1.setFrameShadow(QFrame.Sunken)
- self.line1.setFrameShape(QFrame.HLine)
- QXEmbedExampleLayout.addWidget(self.line1)
+ self.line1 = TQFrame(self,"line1")
+ self.line1.setFrameShape(TQFrame.HLine)
+ self.line1.setFrameShadow(TQFrame.Sunken)
+ self.line1.setFrameShape(TQFrame.HLine)
+ TQXEmbedExampleLayout.addWidget(self.line1)
- self.mainTabs = QTabWidget(self,"mainTabs")
+ self.mainTabs = TQTabWidget(self,"mainTabs")
- self.tab = QWidget(self.mainTabs,"tab")
- tabLayout = QHBoxLayout(self.tab,11,6,"tabLayout")
+ self.tab = TQWidget(self.mainTabs,"tab")
+ tabLayout = TQHBoxLayout(self.tab,11,6,"tabLayout")
- self.textLabel1 = QLabel(self.tab,"textLabel1")
+ self.textLabel1 = TQLabel(self.tab,"textLabel1")
tabLayout.addWidget(self.textLabel1)
- self.mainTabs.insertTab(self.tab,QString(""))
- QXEmbedExampleLayout.addWidget(self.mainTabs)
+ self.mainTabs.insertTab(self.tab,TQString(""))
+ TQXEmbedExampleLayout.addWidget(self.mainTabs)
self.languageChange()
- self.resize(QSize(471,499).expandedTo(self.minimumSizeHint()))
- self.clearWState(Qt.WState_Polished)
+ self.resize(TQSize(471,499).expandedTo(self.minimumSizeHint()))
+ self.clearWState(TQt.WState_Polished)
self.connect(self.launchButton,SIGNAL("clicked()"),self.launchApp)
def languageChange(self):
- self.setCaption(self.__tr("QXEmbed Example"))
+ self.setCaption(self.__tr("TQXEmbed Example"))
self.appNameCombo.clear()
self.appNameCombo.insertItem(self.__tr("kcalc"))
self.appNameCombo.insertItem(self.__tr("konqueror"))
self.appNameCombo.insertItem(self.__tr("kedit"))
self.launchButton.setText(self.__tr("Launch and Embed"))
- self.textLabel1.setText(self.__tr("<b>QXEmbed Example</b>\n"
+ self.textLabel1.setText(self.__tr("<b>TQXEmbed Example</b>\n"
"<br><br>\n"
"\n"
"Select one of the app names from the combo list, then launch it with the button. Two seconds after launch, the window for the new process will get added as a new tab."))
@@ -73,7 +73,7 @@ class QXEmbedExample(QWidget):
def launchApp(self):
- print "QXEmbedExample.launchApp(): Not implemented yet"
+ print "TQXEmbedExample.launchApp(): Not implemented yet"
def __tr(self,s,c = None):
- return qApp.translate("QXEmbedExample",s,c)
+ return qApp.translate("TQXEmbedExample",s,c)
diff --git a/examples/qxembedexample.ui b/examples/qxembedexample.ui
index d346516..2613c51 100644
--- a/examples/qxembedexample.ui
+++ b/examples/qxembedexample.ui
@@ -1,8 +1,8 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
-<class>QXEmbedExample</class>
-<widget class="QWidget">
+<class>TQXEmbedExample</class>
+<widget class="TQWidget">
<property name="name">
- <cstring>QXEmbedExample</cstring>
+ <cstring>TQXEmbedExample</cstring>
</property>
<property name="geometry">
<rect>
@@ -13,13 +13,13 @@
</rect>
</property>
<property name="caption">
- <string>QXEmbed Example</string>
+ <string>TQXEmbed Example</string>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout2</cstring>
</property>
@@ -104,11 +104,11 @@
<enum>Horizontal</enum>
</property>
</widget>
- <widget class="QTabWidget">
+ <widget class="TQTabWidget">
<property name="name">
<cstring>mainTabs</cstring>
</property>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -119,12 +119,12 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1</cstring>
</property>
<property name="text">
- <string>&lt;b&gt;QXEmbed Example&lt;/b&gt;
+ <string>&lt;b&gt;TQXEmbed Example&lt;/b&gt;
&lt;br&gt;&lt;br&gt;
Select one of the app names from the combo list, then launch it with the button. Two seconds after launch, the window for the new process will get added as a new tab.</string>
@@ -139,7 +139,7 @@ Select one of the app names from the combo list, then launch it with the button.
<connection>
<sender>launchButton</sender>
<signal>clicked()</signal>
- <receiver>QXEmbedExample</receiver>
+ <receiver>TQXEmbedExample</receiver>
<slot>launchApp()</slot>
</connection>
</connections>
diff --git a/examples/systray.py b/examples/systray.py
index dda65bb..a271f4e 100644
--- a/examples/systray.py
+++ b/examples/systray.py
@@ -29,7 +29,7 @@ copyright holder.
import sys
-from qt import QLabel
+from qt import TQLabel
from tdecore import KApplication, KIcon, KIconLoader
from tdeui import KMainWindow, KSystemTray
diff --git a/examples/uikmdi.py b/examples/uikmdi.py
index 95960ee..90cd721 100644
--- a/examples/uikmdi.py
+++ b/examples/uikmdi.py
@@ -28,7 +28,7 @@ All is not rosy, however:
import os
import sys
-from qt import SIGNAL, QVBoxLayout, QLabel
+from qt import SIGNAL, TQVBoxLayout, TQLabel
from tdecore import i18n, KAboutData, KApplication, KGlobal, KIcon, KCmdLineArgs
from tdeui import KDockWidget, KListBox, KStdAction
@@ -41,7 +41,7 @@ except (ImportError, ):
sigChildCloseRequest = SIGNAL('childWindowCloseRequest(KMdiChildView *)')
sigChildViewActivated = SIGNAL('viewActivated(KMdiChildView *)')
-sigBoxSelectionChanged = SIGNAL('selectionChanged(QListBoxItem *)')
+sigBoxSelectionChanged = SIGNAL('selectionChanged(TQListBoxItem *)')
def getIcon(name, group=KIcon.NoGroup, size=KIcon.SizeSmall):
@@ -126,12 +126,12 @@ class KmdiExample(KMdiMainFrm):
view = KMdiChildView(label, self)
self.childs[label] = view
view.setIcon(getIcon(icon))
- layout = QVBoxLayout(view)
+ layout = TQVBoxLayout(view)
layout.setAutoAdd(True)
lbl = i18n('Label for a view with an icon named %s' % text)
- lbl = QLabel(lbl, view)
- pxm = QLabel('', view)
+ lbl = TQLabel(lbl, view)
+ pxm = TQLabel('', view)
pxm.setPixmap(getIcon(icon, size=KIcon.SizeLarge))
self.addWindow(view)
diff --git a/examples/uimodules/uidialogs.py b/examples/uimodules/uidialogs.py
index a08e44d..1c85fbe 100644
--- a/examples/uimodules/uidialogs.py
+++ b/examples/uimodules/uidialogs.py
@@ -1,5 +1,5 @@
-from qt import QVBox, QLabel, QLineEdit, QString, QPixmap, QPushButton, QColor, SIGNAL, QButtonGroup,\
- QRadioButton, Qt, QWidget
+from qt import TQVBox, TQLabel, TQLineEdit, TQString, TQPixmap, TQPushButton, TQColor, SIGNAL, TQButtonGroup,\
+ TQRadioButton, TQt, TQWidget
from tdecore import KAccel, i18n
@@ -28,15 +28,15 @@ class CustomDlg (KDialog):
x = 20
y = 10
- rLbl = QLabel ("r", self)
- gLbl = QLabel ("g", self)
- bLbl = QLabel ("b", self)
- self.rEd = QLineEdit ("64", self)
- self.gEd = QLineEdit ("64", self)
- self.bEd = QLineEdit ("64", self)
- self.dlgBtn = QPushButton ("Set/Get Color", self)
- self.okBtn = QPushButton ("OK", self)
- self.canBtn = QPushButton ("Cancel", self)
+ rLbl = TQLabel ("r", self)
+ gLbl = TQLabel ("g", self)
+ bLbl = TQLabel ("b", self)
+ self.rEd = TQLineEdit ("64", self)
+ self.gEd = TQLineEdit ("64", self)
+ self.bEd = TQLineEdit ("64", self)
+ self.dlgBtn = TQPushButton ("Set/Get Color", self)
+ self.okBtn = TQPushButton ("OK", self)
+ self.canBtn = TQPushButton ("Cancel", self)
rLbl.setGeometry (x, y, 25, 20)
gLbl.setGeometry (x + 30, y, 25, 20)
@@ -61,8 +61,8 @@ class CustomDlg (KDialog):
green = int (self.gEd.text ().latin1 ())
blue = int (self.bEd.text ().latin1 ())
- # convert the numbers to a QColor
- color = QColor (red, green, blue)
+ # convert the numbers to a TQColor
+ color = TQColor (red, green, blue)
# invoke the dialog (getColor is a 'static' call)
# initialize with the colors from above (in color)
@@ -73,7 +73,7 @@ class CustomDlg (KDialog):
# get the numerical color values back
red, green, blue = color.rgb ()
- # update the QLineEdits in the original dialog
+ # update the TQLineEdits in the original dialog
self.rEd.setText (str (red))
self.gEd.setText (str (green))
self.bEd.setText (str (blue))
@@ -93,10 +93,10 @@ class MessageDlg (KDialog):
n = len (buttons)
- grp = QButtonGroup (n, Qt.Vertical, "MessageBoxes", self, "button grp")
+ grp = TQButtonGroup (n, TQt.Vertical, "MessageBoxes", self, "button grp")
grp.setGeometry (10, 10, 200, 30*n)
for i in range (n):
- QRadioButton (buttons [i], grp)
+ TQRadioButton (buttons [i], grp)
self.connect (grp, SIGNAL ("clicked (int)"), self.launch)
@@ -126,11 +126,11 @@ class MessageDlg (KDialog):
def dlgKAboutDialog (parent):
dlg = KAboutDialog (parent, 'about dialog', False)
- dlg.setLogo (QPixmap ("pytestimage.png"))
+ dlg.setLogo (TQPixmap ("pytestimage.png"))
dlg.setTitle ("UISampler for PyKDE")
dlg.setAuthor ("Jim Bublitz", "jbublitz@nwinternet.com", "http://www.riverbankcomputing.co.uk",\
"\n\nPyKDE -- Python bindings\n\tfor KDE")
- dlg.addContributor ("PyKDE list", "pykde@mats.gmd.de", QString.null, QString.null)
+ dlg.addContributor ("PyKDE list", "pykde@mats.gmd.de", TQString.null, TQString.null)
dlg.show ()
@@ -161,18 +161,18 @@ def dlgKDialogBase (parent):
# making 'page' the parent inserts the widgets in
# the VBox created above
- label = QLabel( caption, page, "caption" );
+ label = TQLabel( caption, page, "caption" );
- lineedit = QLineEdit(text_, page, "lineedit" );
+ lineedit = TQLineEdit(text_, page, "lineedit" );
lineedit.setMinimumWidth(dlg.fontMetrics().maxWidth()*20);
# This tests some handwritten code in KDialogBase
- label0 = QLabel ("Border widths", page)
+ label0 = TQLabel ("Border widths", page)
a, b, c, d = dlg.getBorderWidths ()
- labelA = QLabel ("Upper Left X: " + str (a), page)
- labelB = QLabel ("Upper Left Y: " + str (b), page)
- labelC = QLabel ("Lower Right X: " + str (c), page)
- labelD = QLabel ("Lower Right Y: " + str (d), page)
+ labelA = TQLabel ("Upper Left X: " + str (a), page)
+ labelB = TQLabel ("Upper Left Y: " + str (b), page)
+ labelC = TQLabel ("Lower Right X: " + str (c), page)
+ labelD = TQLabel ("Lower Right Y: " + str (d), page)
dlg.show ()
@@ -211,14 +211,14 @@ def dlgKPasswordDialog (parent):
def dlgKWizard (parent):
wiz = KWizard (parent)
- page1 = QWidget (wiz)
- p1Lbl = QLabel ("This is page 1", page1)
+ page1 = TQWidget (wiz)
+ p1Lbl = TQLabel ("This is page 1", page1)
p1Lbl.setGeometry (20, 20, 100, 20)
- page2 = QWidget (wiz)
- p2Lbl = QLabel ("This is page 2", page2)
+ page2 = TQWidget (wiz)
+ p2Lbl = TQLabel ("This is page 2", page2)
p2Lbl.setGeometry (50, 20, 100, 20)
- page3 = QWidget (wiz)
- p3Lbl = QLabel ("This is page 3", page3)
+ page3 = TQWidget (wiz)
+ p3Lbl = TQLabel ("This is page 3", page3)
p3Lbl.setGeometry (80, 20, 100, 20)
wiz.addPage (page1, "Page 1")
diff --git a/examples/uimodules/uimenus.py b/examples/uimodules/uimenus.py
index 6f98769..4e11157 100644
--- a/examples/uimodules/uimenus.py
+++ b/examples/uimodules/uimenus.py
@@ -1,6 +1,6 @@
import os
-from qt import QLabel
+from qt import TQLabel
from tdecore import KApplication
@@ -11,7 +11,7 @@ class PageLaunch:
x = 10
y = 10
- launchLbl = QLabel ("Launching application ... please wait\n\nClose launched application to continue", self.page)
+ launchLbl = TQLabel ("Launching application ... please wait\n\nClose launched application to continue", self.page)
launchLbl.setGeometry (x, y, 300, 80)
launchLbl.show ()
@@ -27,7 +27,7 @@ class PageNotImpl:
x = 10
y = 10
- niLbl = QLabel ("Nothing is currently implemented for this widget", self.page)
+ niLbl = TQLabel ("Nothing is currently implemented for this widget", self.page)
niLbl.setGeometry (x, y, 300, 20)
niLbl.show ()
diff --git a/examples/uimodules/uimisc.py b/examples/uimodules/uimisc.py
index 7f39b86..f296aac 100644
--- a/examples/uimodules/uimisc.py
+++ b/examples/uimodules/uimisc.py
@@ -1,6 +1,6 @@
import os, time
-from qt import QImage, QLabel, QPixmap, QPushButton, SIGNAL, QColor, QValidator
+from qt import TQImage, TQLabel, TQPixmap, TQPushButton, SIGNAL, TQColor, TQValidator
from tdeui import KMessageBox, KDateValidator, KFloatValidator, KIntValidator, KLineEdit, KLed
@@ -13,33 +13,33 @@ class Page3:
x = 10
y = 15
- green = QColor (0, 255, 0)
- yellow = QColor (255, 255, 0)
- red = QColor (255, 0, 0)
+ green = TQColor (0, 255, 0)
+ yellow = TQColor (255, 255, 0)
+ red = TQColor (255, 0, 0)
- ivLbl = QLabel ("KIntValidator", self.page)
+ ivLbl = TQLabel ("KIntValidator", self.page)
ivLbl.setGeometry (x, y, 100, 20)
ivLbl.show ()
self.iv = KLineEdit (self.page)
self.iv.setGeometry (x, y + 20, 100, 20)
self.iv.show ()
- self.page.connect (self.iv, SIGNAL("textChanged (const QString &)"), self.ivChanged)
+ self.page.connect (self.iv, SIGNAL("textChanged (const TQString &)"), self.ivChanged)
self.ivVal = KIntValidator (self.page)
self.ivVal.setRange (20, 50)
- ivRngLbl = QLabel ("Range is 20 - 50", self.page)
+ ivRngLbl = TQLabel ("Range is 20 - 50", self.page)
ivRngLbl.setGeometry (x, y + 45, 100, 20)
ivRngLbl.show ()
- ivAccLbl = QLabel ("Acceptable", self.page)
+ ivAccLbl = TQLabel ("Acceptable", self.page)
ivAccLbl.setGeometry (x + 125, y + 45, 85, 20)
ivAccLbl.show ()
- ivInterLbl = QLabel ("Intermediate", self.page)
+ ivInterLbl = TQLabel ("Intermediate", self.page)
ivInterLbl.setGeometry (x + 125, y + 20, 85, 20)
ivInterLbl.show ()
- ivInvalLbl = QLabel ("Invalid", self.page)
+ ivInvalLbl = TQLabel ("Invalid", self.page)
ivInvalLbl.setGeometry (x + 125, y - 5, 85, 20)
ivInvalLbl.show ()
self.ivInvalLed = KLed (red, KLed.Off, KLed.Sunken, KLed.Circular,self.page)
@@ -54,29 +54,29 @@ class Page3:
y = y + 100
- fvLbl = QLabel ("KFloatValidator", self.page)
+ fvLbl = TQLabel ("KFloatValidator", self.page)
fvLbl.setGeometry (x, y, 100, 20)
fvLbl.show ()
self.fv = KLineEdit (self.page)
self.fv.setGeometry (x, y + 20, 100, 20)
self.fv.show ()
- self.page.connect (self.fv, SIGNAL("textChanged (const QString &)"), self.fvChanged)
+ self.page.connect (self.fv, SIGNAL("textChanged (const TQString &)"), self.fvChanged)
self.fvVal = KFloatValidator (self.page)
self.fvVal.setRange (10.0, 40.0)
- fvRngLbl = QLabel ("Range is 10.0 - 40.0", self.page)
+ fvRngLbl = TQLabel ("Range is 10.0 - 40.0", self.page)
fvRngLbl.setGeometry (x, y + 45, 100, 20)
fvRngLbl.show ()
- fvAccLbl = QLabel ("Acceptable", self.page)
+ fvAccLbl = TQLabel ("Acceptable", self.page)
fvAccLbl.setGeometry (x + 125, y + 45, 85, 20)
fvAccLbl.show ()
- fvInterLbl = QLabel ("Intermediate", self.page)
+ fvInterLbl = TQLabel ("Intermediate", self.page)
fvInterLbl.setGeometry (x + 125, y + 20, 95, 20)
fvInterLbl.show ()
- fvInvalLbl = QLabel ("Invalid", self.page)
+ fvInvalLbl = TQLabel ("Invalid", self.page)
fvInvalLbl.setGeometry (x + 125, y - 5, 85, 20)
fvInvalLbl.show ()
self.fvInvalLed = KLed (red, KLed.Off, KLed.Sunken, KLed.Circular,self.page)
@@ -91,38 +91,38 @@ class Page3:
y = y + 100
- dvLbl = QLabel ("KDateValidator", self.page)
+ dvLbl = TQLabel ("KDateValidator", self.page)
dvLbl.setGeometry (x, y, 100, 20)
dvLbl.show ()
self.dv = KLineEdit (self.page)
self.dv.setGeometry (x, y + 20, 100, 20)
self.dv.show ()
-# self.page.connect (self.dv, SIGNAL("textChanged (const QString &)"), self.dvChanged)
+# self.page.connect (self.dv, SIGNAL("textChanged (const TQString &)"), self.dvChanged)
self.dvVal = KDateValidator (self.page)
# self.dvVal.setRange (10.0, 40.0)
-# dvRngLbl = QLabel ("Range is 10.0 - 40.0", self.page)
+# dvRngLbl = TQLabel ("Range is 10.0 - 40.0", self.page)
# dvRngLbl.setGeometry (x, y + 45, 100, 20)
# dvRngLbl.show ()
- dvBtn = QPushButton ("Validate", self.page)
+ dvBtn = TQPushButton ("Validate", self.page)
dvBtn.setGeometry (x, y + 45, 60, 22)
dvBtn.show ()
self.page.connect (dvBtn, SIGNAL ("clicked ()"), self.dvChanged)
- dvNoteLbl = QLabel ("Format is locale dependent\nShort date only\nTry DD-MM-YY", self.page)
+ dvNoteLbl = TQLabel ("Format is locale dependent\nShort date only\nTry DD-MM-YY", self.page)
dvNoteLbl.setGeometry (x, y + 70, 150, 60)
dvNoteLbl.show ()
- dvAccLbl = QLabel ("Acceptable", self.page)
+ dvAccLbl = TQLabel ("Acceptable", self.page)
dvAccLbl.setGeometry (x + 125, y + 45, 85, 20)
dvAccLbl.show ()
- dvInterLbl = QLabel ("Intermediate", self.page)
+ dvInterLbl = TQLabel ("Intermediate", self.page)
dvInterLbl.setGeometry (x + 125, y + 20, 85, 20)
dvInterLbl.show ()
- dvInvalLbl = QLabel ("Invalid", self.page)
+ dvInvalLbl = TQLabel ("Invalid", self.page)
dvInvalLbl.setGeometry (x + 125, y - 5, 85, 20)
dvInvalLbl.show ()
self.dvInvalLed = KLed (red, KLed.Off, KLed.Sunken, KLed.Circular,self.page)
@@ -142,9 +142,9 @@ class Page3:
state, i = self.ivVal.validate (self.iv.text ())
- if state == QValidator.Acceptable:
+ if state == TQValidator.Acceptable:
self.ivAccLed.on ()
- elif state == QValidator.Intermediate:
+ elif state == TQValidator.Intermediate:
self.ivInterLed.on ()
else:
self.ivInvalLed.on ()
@@ -156,9 +156,9 @@ class Page3:
state, i = self.fvVal.validate (self.fv.text ())
- if state == QValidator.Acceptable:
+ if state == TQValidator.Acceptable:
self.fvAccLed.on ()
- elif state == QValidator.Intermediate:
+ elif state == TQValidator.Intermediate:
self.fvInterLed.on ()
else:
self.fvInvalLed.on ()
@@ -170,9 +170,9 @@ class Page3:
state, i = self.dvVal.validate (self.dv.text ())
- if state == QValidator.Acceptable:
+ if state == TQValidator.Acceptable:
self.dvAccLed.on ()
- elif state == QValidator.Intermediate:
+ elif state == TQValidator.Intermediate:
self.dvInterLed.on ()
else:
self.dvInvalLed.on ()
@@ -184,7 +184,7 @@ class PageNotImpl:
x = 10
y = 10
- niLbl = QLabel ("Nothing is currently implemented for this widget", self.page)
+ niLbl = TQLabel ("Nothing is currently implemented for this widget", self.page)
niLbl.setGeometry (x, y, 300, 20)
niLbl.show ()
@@ -230,7 +230,7 @@ def miscKSystemTray (parent):
def miscKThemeBase (parent):
parent.currentPageObj = PageNotImpl (parent)
-def miscQXEmbed (parent):
+def miscTQXEmbed (parent):
parent.currentPageObj = PageNotImpl (parent)
if __name__ == "__main__":
diff --git a/examples/uimodules/uiwidgets.py b/examples/uimodules/uiwidgets.py
index 54573bf..efbb8a6 100644
--- a/examples/uimodules/uiwidgets.py
+++ b/examples/uimodules/uiwidgets.py
@@ -1,7 +1,7 @@
import time, sys
-from qt import QLabel, QFrame, QColor, QPushButton, SIGNAL, QButtonGroup, QRadioButton, Qt, QString, QChar,\
- QWidget, QTimer
+from qt import TQLabel, TQFrame, TQColor, TQPushButton, SIGNAL, TQButtonGroup, TQRadioButton, TQt, TQString, TQChar,\
+ TQWidget, TQTimer
from tdecore import KApplication
from tdeui import KEdit, KComboBox, KColorCombo, KEditListBox, KListBox, KLineEdit, KRestrictedLine,\
@@ -23,7 +23,7 @@ class Page1:
x = 10
y = 10
- editLbl = QLabel ("KEdit", self.page)
+ editLbl = TQLabel ("KEdit", self.page)
editLbl.setGeometry (x, y, 50, 20)
editLbl.show ()
@@ -39,9 +39,9 @@ class Page1:
parent.edit.show ()
y = y + 125
- searchBtn = QPushButton ("Search", self.page)
- replaceBtn = QPushButton ("Replace", self.page)
- gotoBtn = QPushButton ("GoTo Line", self.page)
+ searchBtn = TQPushButton ("Search", self.page)
+ replaceBtn = TQPushButton ("Replace", self.page)
+ gotoBtn = TQPushButton ("GoTo Line", self.page)
searchBtn.setGeometry (x, y, 60, 22)
replaceBtn.setGeometry (x + 90, y, 60, 22)
@@ -57,7 +57,7 @@ class Page1:
y = y + 35
- lineeditLbl = QLabel ("KLineEdit", self.page)
+ lineeditLbl = TQLabel ("KLineEdit", self.page)
lineeditLbl.setGeometry (x, y, 70, 20)
lineeditLbl.show ()
@@ -65,7 +65,7 @@ class Page1:
lineedit.setGeometry (x, y + 20, 100, 20)
lineedit.show ()
- intLbl = QLabel ("KIntNumInput", self.page)
+ intLbl = TQLabel ("KIntNumInput", self.page)
intLbl.setGeometry (x + 195, y + 35, 95, 20)
intLbl.show ()
@@ -79,7 +79,7 @@ class Page1:
y = y + 50
- dblLbl = QLabel ("KDoubleNumInput", self.page)
+ dblLbl = TQLabel ("KDoubleNumInput", self.page)
dblLbl.setGeometry (x + 195, y + 80, 115, 20)
dblLbl.show ()
@@ -89,7 +89,7 @@ class Page1:
dblNum.setRange (0.0, 10.0, 0.5, True)
dblNum.show ()
- restricteditLbl = QLabel ("KRestrictedLine", self.page)
+ restricteditLbl = TQLabel ("KRestrictedLine", self.page)
restricteditLbl.setGeometry (x, y, 95, 20)
restricteditLbl.show ()
@@ -101,14 +101,14 @@ class Page1:
n = len (buttons)
- self.validLbl = QLabel ("", self.page)
+ self.validLbl = TQLabel ("", self.page)
self.validLbl.setGeometry (x, y + 50, 250, 20)
self.validLbl.show ()
- grp = QButtonGroup (n, Qt.Vertical, "Select valid chars", self.page, "button grp")
+ grp = TQButtonGroup (n, TQt.Vertical, "Select valid chars", self.page, "button grp")
grp.setGeometry (x, y + 75, 150, 5+30*n)
for i in range (n):
- QRadioButton (buttons [i], grp)
+ TQRadioButton (buttons [i], grp)
grp.connect (grp, SIGNAL ("clicked (int)"), self.restrict)
@@ -122,21 +122,21 @@ class Page1:
kapp.processEvents ()
y = y + 195
- sqzLbl = QLabel ("This text is too long to fit in the label below", self.page)
+ sqzLbl = TQLabel ("This text is too long to fit in the label below", self.page)
sqzLbl.setGeometry (x, y, 350, 20)
sqzLbl.show ()
- sqzLbl1 = QLabel ("KSqueezedTxtLabel:", self.page)
+ sqzLbl1 = TQLabel ("KSqueezedTxtLabel:", self.page)
sqzLbl1.setGeometry (x, y + 20, 120, 20)
sqzLbl1.show ()
squeeze = KSqueezedTextLabel ("This text is too long to fit in the label below", self.page)
squeeze.setGeometry (x + 125, y + 20, 125, 20)
- squeeze.setBackgroundMode (QWidget.PaletteBase)
+ squeeze.setBackgroundMode (TQWidget.PaletteBase)
squeeze.show ()
def restrict (self, which):
- r = {0: "0123456789", 1: "ABCDEFGHIJKLMNOPQRSTUVWXYZ", 2: "abcdefghijklmnopqrstuvwxyz"}
+ r = {0: "0123456789", 1: "ABCDEFGHIJKLMNOPTQRSTUVWXYZ", 2: "abcdefghijklmnopqrstuvwxyz"}
self.restrictlineedit.setValidChars (r [which])
self.validLbl.setText ("Valid: " + self.restrictlineedit.validChars ().latin1 ())
@@ -152,7 +152,7 @@ class Page2:
- cbLbl = QLabel ("KComboBox", self.page)
+ cbLbl = TQLabel ("KComboBox", self.page)
cbLbl.setGeometry (x1, y1, 75, 20)
cbLbl.show ()
@@ -161,7 +161,7 @@ class Page2:
combo.setGeometry (x1, y1 + 20, 100, 25)
combo.show ()
- ccbLbl = QLabel ("KColorCombo", self.page)
+ ccbLbl = TQLabel ("KColorCombo", self.page)
ccbLbl.setGeometry (x2, y1, 100, 20)
ccbLbl.show ()
@@ -174,7 +174,7 @@ class Page2:
editListBox.insertStrList (["One", "Two", "Three"])
editListBox.show ()
- lbLbl = QLabel ("KListBox", self.page)
+ lbLbl = TQLabel ("KListBox", self.page)
lbLbl.setGeometry (x2, y2, 100, 20)
lbLbl.show ()
@@ -190,7 +190,7 @@ class Page3:
x = 10
y = 10
- fontLbl = QLabel ("KFontChooser", self.page)
+ fontLbl = TQLabel ("KFontChooser", self.page)
fontLbl.setGeometry (x, y, 95, 20)
fontLbl.show ()
@@ -207,16 +207,16 @@ class Page4:
x = 10
y = 10
- cbLbl = QLabel ("KColorButton", self.page)
+ cbLbl = TQLabel ("KColorButton", self.page)
cbLbl.setGeometry (x, y, 75, 20)
cbLbl.show ()
cb = KColorButton (self.page)
- cb.setColor (QColor (255, 0, 0))
+ cb.setColor (TQColor (255, 0, 0))
cb.setGeometry (x, y + 20, 30, 30)
cb.show ()
- ccbLbl = QLabel ("KColorCombo", self.page)
+ ccbLbl = TQLabel ("KColorCombo", self.page)
ccbLbl.setGeometry (x + 150, y, 100, 20)
ccbLbl.show ()
@@ -226,53 +226,53 @@ class Page4:
y = y + 60
- cpLbl = QLabel ("KColorPatch", self.page)
+ cpLbl = TQLabel ("KColorPatch", self.page)
cpLbl.setGeometry (x, y, 75, 20)
cpLbl.show ()
cp = KColorPatch (self.page)
- cp.setColor (QColor (255, 0, 0))
+ cp.setColor (TQColor (255, 0, 0))
cp.setGeometry (x, y + 20, 20, 20)
cp.show ()
x = x + 150
- ccLbl = QLabel ("KColorCells", self.page)
+ ccLbl = TQLabel ("KColorCells", self.page)
ccLbl.setGeometry (x, y, 75, 20)
ccLbl.show ()
cc = KColorCells (self.page, 1, 5)
- cc.setColor (0, QColor (0, 0, 0))
- cc.setColor (1, QColor (255, 0, 0))
- cc.setColor (2, QColor (0, 255, 0))
- cc.setColor (3, QColor (0, 0, 255))
- cc.setColor (4, QColor (255, 255, 255))
+ cc.setColor (0, TQColor (0, 0, 0))
+ cc.setColor (1, TQColor (255, 0, 0))
+ cc.setColor (2, TQColor (0, 255, 0))
+ cc.setColor (3, TQColor (0, 0, 255))
+ cc.setColor (4, TQColor (255, 255, 255))
cc.setGeometry (x, y + 20, 100, 20)
cc.show ()
x = 10
y = y + 50
- dcLbl = QLabel ("KDualColorButton", self.page)
+ dcLbl = TQLabel ("KDualColorButton", self.page)
dcLbl.setGeometry (x, y, 105, 20)
dcLbl.show ()
- dc = KDualColorButton (QColor (255, 0, 0), QColor (0, 0, 0), self.page)
+ dc = KDualColorButton (TQColor (255, 0, 0), TQColor (0, 0, 0), self.page)
dc.setGeometry (x, y + 20, 40, 40)
dc.show ()
- gsLbl = QLabel ("KGradientSelector", self.page)
+ gsLbl = TQLabel ("KGradientSelector", self.page)
gsLbl.setGeometry (x + 80, y + 30, 110, 20)
gsLbl.show ()
gs = KGradientSelector (self.page)
gs.setGeometry (x + 80, y + 50, 250, 20)
- gs.setColors (QColor (255, 0, 0), QColor (255, 255, 0))
+ gs.setColors (TQColor (255, 0, 0), TQColor (255, 255, 0))
gs.show ()
y = y + 80
- hsLbl = QLabel ("KHSSelector", self.page)
+ hsLbl = TQLabel ("KHSSelector", self.page)
hsLbl.setGeometry (x, y, 95, 20)
hsLbl.show ()
@@ -282,7 +282,7 @@ class Page4:
y = y + 110
- ptLbl = QLabel ("KPaletteTable", self.page)
+ ptLbl = TQLabel ("KPaletteTable", self.page)
ptLbl.setGeometry (x, y, 95, 20)
ptLbl.show ()
@@ -298,7 +298,7 @@ class Page5:
x = 10
y = 10
- rpLbl = QLabel ("KRootPermsIcon", self.page)
+ rpLbl = TQLabel ("KRootPermsIcon", self.page)
rpLbl.setGeometry (x, y, 95, 20)
rpLbl.show ()
@@ -306,7 +306,7 @@ class Page5:
rp.setGeometry (x, y + 20, 32, 32)
rp.show ()
- wpLbl = QLabel ("KWritePermsIcon", self.page)
+ wpLbl = TQLabel ("KWritePermsIcon", self.page)
wpLbl.setGeometry (x + 125, y, 95, 20)
wpLbl.show ()
@@ -316,7 +316,7 @@ class Page5:
y = y + 75
- pw1Lbl = QLabel ("KPasswordEdit - echo *", self.page)
+ pw1Lbl = TQLabel ("KPasswordEdit - echo *", self.page)
pw1Lbl.setGeometry (x, y, 150, 20)
pw1Lbl.show ()
@@ -326,7 +326,7 @@ class Page5:
y = y + 50
- pw2Lbl = QLabel ("KPasswordEdit - echo ***", self.page)
+ pw2Lbl = TQLabel ("KPasswordEdit - echo ***", self.page)
pw2Lbl.setGeometry (x, y, 150, 20)
pw2Lbl.show ()
@@ -336,7 +336,7 @@ class Page5:
y = y + 50
- pw3Lbl = QLabel ("KPasswordEdit - no echo", self.page)
+ pw3Lbl = TQLabel ("KPasswordEdit - no echo", self.page)
pw3Lbl.setGeometry (x, y, 150, 20)
pw3Lbl.show ()
@@ -346,7 +346,7 @@ class Page5:
y = y + 50
- urlLbl = QLabel ("KURLLabel", self.page)
+ urlLbl = TQLabel ("KURLLabel", self.page)
urlLbl.setGeometry (x, y, 100, 20)
urlLbl.show ()
@@ -359,11 +359,11 @@ class Page5:
x = 70
y = y + 50
- bbLbl = QLabel ("KButtonBox", self.page)
+ bbLbl = TQLabel ("KButtonBox", self.page)
bbLbl.setGeometry (x, y, 75, 20)
bbLbl.show ()
- bbox = KButtonBox (self.page, Qt.Horizontal)
+ bbox = KButtonBox (self.page, TQt.Horizontal)
bbox.setGeometry (x, y + 20, 300, 22)
bbox.addButton ("Button 1")
bbox.addButton ("Button 2")
@@ -372,14 +372,14 @@ class Page5:
y = y + 50
-# dbLbl = QLabel ("KDirectionButton", self.page)
+# dbLbl = TQLabel ("KDirectionButton", self.page)
# dbLbl.setGeometry (x, y, 95, 20)
# dbLbl.show ()
-# dbUp = KDirectionButton (Qt.UpArrow, self.page)
-# dbDown = KDirectionButton (Qt.DownArrow, self.page)
-# dbRight = KDirectionButton (Qt.RightArrow, self.page)
-# dbLeft = KDirectionButton (Qt.LeftArrow, self.page)
+# dbUp = KDirectionButton (TQt.UpArrow, self.page)
+# dbDown = KDirectionButton (TQt.DownArrow, self.page)
+# dbRight = KDirectionButton (TQt.RightArrow, self.page)
+# dbLeft = KDirectionButton (TQt.LeftArrow, self.page)
# dbUp.setGeometry (x, y + 20, 22, 22)
# dbDown.setGeometry (x + 30, y + 20, 22, 22)
@@ -393,7 +393,7 @@ class Page5:
x = x + 150
-# kbLbl = QLabel ("KKeyButton", self.page)
+# kbLbl = TQLabel ("KKeyButton", self.page)
# kbLbl.setGeometry (x, y, 95, 20)
# kbLbl.show ()
@@ -405,14 +405,14 @@ class Page5:
x = 70
y = y + 50
-# tbLbl = QLabel ("KTabButton", self.page)
+# tbLbl = TQLabel ("KTabButton", self.page)
# tbLbl.setGeometry (x, y, 95, 20)
# tbLbl.show ()
-# tbUp = KTabButton (Qt.UpArrow, self.page)
-# tbDown = KTabButton (Qt.DownArrow, self.page)
-# tbRight = KTabButton (Qt.RightArrow, self.page)
-# tbLeft = KTabButton (Qt.LeftArrow, self.page)
+# tbUp = KTabButton (TQt.UpArrow, self.page)
+# tbDown = KTabButton (TQt.DownArrow, self.page)
+# tbRight = KTabButton (TQt.RightArrow, self.page)
+# tbLeft = KTabButton (TQt.LeftArrow, self.page)
# tbUp.setGeometry (x, y + 20, 22, 25)
# tbDown.setGeometry (x + 30, y + 20, 22, 25)
@@ -431,10 +431,10 @@ class Page6:
x = 20
y = 10
- red = QColor (255, 0, 0)
- green = QColor (0, 255, 0)
- yellow = QColor (255, 255, 0)
- blue = QColor (0, 0, 255)
+ red = TQColor (255, 0, 0)
+ green = TQColor (0, 255, 0)
+ yellow = TQColor (255, 255, 0)
+ blue = TQColor (0, 0, 255)
ledcolor = [red, green, yellow, blue]
ledshape = [KLed.Rectangular, KLed.Circular]
@@ -456,7 +456,7 @@ class Page6:
y = y + 30
y = y + 10
- toggle = QPushButton ("Toggle", self.page)
+ toggle = TQPushButton ("Toggle", self.page)
toggle.setGeometry (150, 400, 60, 22)
toggle.show ()
@@ -476,21 +476,21 @@ class Page7:
x = 10
y = 10
- tabLbl = QLabel ("KTabCtl", self.page)
+ tabLbl = TQLabel ("KTabCtl", self.page)
tabLbl.setGeometry (x, y, 95, 20)
tabLbl.show ()
tab = KTabCtl (self.page)
tab.setGeometry (x, y + 20, 300, 100)
- page1 = QWidget (tab)
- p1Lbl = QLabel ("This is page 1", page1)
+ page1 = TQWidget (tab)
+ p1Lbl = TQLabel ("This is page 1", page1)
p1Lbl.setGeometry (20, 20, 100, 20)
- page2 = QWidget (tab)
- p2Lbl = QLabel ("This is page 2", page2)
+ page2 = TQWidget (tab)
+ p2Lbl = TQLabel ("This is page 2", page2)
p2Lbl.setGeometry (50, 20, 100, 20)
- page3 = QWidget (tab)
- p3Lbl = QLabel ("This is page 3", page3)
+ page3 = TQWidget (tab)
+ p3Lbl = TQLabel ("This is page 3", page3)
p3Lbl.setGeometry (20, 50, 100, 20)
tab.addTab (page1, "Tab 1")
@@ -501,7 +501,7 @@ class Page7:
x = 10
y = 150
- progLbl = QLabel ("KProgress", self.page)
+ progLbl = TQLabel ("KProgress", self.page)
progLbl.setGeometry (x, y + 50, 95, 20)
progLbl.show ()
@@ -521,11 +521,11 @@ class Page7:
self.total = 0
y = y + 150
- sepLbl = QLabel ("KSeparator", self.page)
+ sepLbl = TQLabel ("KSeparator", self.page)
sepLbl.setGeometry (x, y, 95, 20)
sepLbl.show ()
- sep = KSeparator (QFrame.HLine, self.page)
+ sep = KSeparator (TQFrame.HLine, self.page)
sep.setGeometry (x, y + 20, 75, 10)
sep.show ()
@@ -540,7 +540,7 @@ class Page7:
self.p2.advance (1)
if self.total < 26:
- QTimer.singleShot (100, self.add1)
+ TQTimer.singleShot (100, self.add1)
@@ -551,7 +551,7 @@ class Page8:
x = 40
y = 10
- dpLbl = QLabel ("KDatePicker", self.page)
+ dpLbl = TQLabel ("KDatePicker", self.page)
dpLbl.setGeometry (x, y, 95, 20)
dpLbl.show ()
@@ -561,7 +561,7 @@ class Page8:
y = y + 210
- dtLbl = QLabel ("KDateTable", self.page)
+ dtLbl = TQLabel ("KDateTable", self.page)
dtLbl.setGeometry (x, y, 95, 20)
dtLbl.show ()
@@ -576,7 +576,7 @@ class PageThisApp:
x = 10
y = 10
- taLbl = QLabel ("This application uses KMainWindow as its top level widget\n and KListView in the"\
+ taLbl = TQLabel ("This application uses KMainWindow as its top level widget\n and KListView in the"\
" left-hand panel", self.page)
taLbl.setGeometry (x, y, 300, 60)
taLbl.show ()
@@ -588,7 +588,7 @@ class PageNotImpl:
x = 10
y = 10
- niLbl = QLabel ("Nothing is currently implemented for this widget", self.page)
+ niLbl = TQLabel ("Nothing is currently implemented for this widget", self.page)
niLbl.setGeometry (x, y, 300, 20)
niLbl.show ()
@@ -600,15 +600,15 @@ class CSDlg (KDialog):
x = 10
y = 10
- csLbl = QLabel ("KCharSelect", self)
+ csLbl = TQLabel ("KCharSelect", self)
csLbl.setGeometry (x, y, 95, 20)
csLbl.show ()
- cs = KCharSelect (self, "chselect", QString.null, QChar (' '), 0)
+ cs = KCharSelect (self, "chselect", TQString.null, TQChar (' '), 0)
cs.setGeometry (x, y + 20, 680, 250)
cs.show ()
- closeBtn = QPushButton ("Close", self)
+ closeBtn = TQPushButton ("Close", self)
closeBtn.setGeometry ( 610, 280, 60, 22)
closeBtn.show ()
diff --git a/examples/uimodules/uixml.py b/examples/uimodules/uixml.py
index 8dbd4d3..8e8ca8c 100644
--- a/examples/uimodules/uixml.py
+++ b/examples/uimodules/uixml.py
@@ -1,6 +1,6 @@
import os
-from qt import QLabel
+from qt import TQLabel
from tdecore import KApplication
@@ -11,7 +11,7 @@ class PageLaunch:
x = 10
y = 10
- launchLbl = QLabel ("Launching application ... please wait\n\nClose launched application to continue", self.page)
+ launchLbl = TQLabel ("Launching application ... please wait\n\nClose launched application to continue", self.page)
launchLbl.setGeometry (x, y, 300, 80)
launchLbl.show ()
diff --git a/examples/uiqxembed.py b/examples/uiqxembed.py
index 6b50945..0275e0c 100644
--- a/examples/uiqxembed.py
+++ b/examples/uiqxembed.py
@@ -4,11 +4,11 @@
"""
import sys
-from qt import QIconSet, QProcess, QTimer, SIGNAL, SLOT
+from qt import TQIconSet, TQProcess, TQTimer, SIGNAL, SLOT
from tdecore import KAboutData, KApplication, KCmdLineArgs, KGlobal, KIcon
from tdecore import KWin, KWinModule
-from tdeui import KComboBox, KMainWindow, KPushButton, QXEmbed
+from tdeui import KComboBox, KMainWindow, KPushButton, TQXEmbed
## add the missing items to the pyuic-generated module
@@ -16,7 +16,7 @@ import qxembedexample
qxembedexample.KComboBox = KComboBox
qxembedexample.KPushButton = KPushButton
-from qxembedexample import QXEmbedExample
+from qxembedexample import TQXEmbedExample
def getIcon(name, group=KIcon.NoGroup, size=KIcon.SizeSmall):
@@ -42,12 +42,12 @@ def getWindow(pid):
return info
-class ExampleForm(QXEmbedExample):
+class ExampleForm(TQXEmbedExample):
""" wraps the pyuic generated form class with our behavior
"""
def __init__(self, parent):
- QXEmbedExample.__init__(self, parent)
+ TQXEmbedExample.__init__(self, parent)
combo = self.appNameCombo
items = [(idx, '%s' % combo.text(idx)) for idx in range(combo.count())]
for idx, name in items:
@@ -61,13 +61,13 @@ class ExampleForm(QXEmbedExample):
"""
name = self.appNameCombo.currentText()
- self.proc = proc = QProcess()
+ self.proc = proc = TQProcess()
proc.addArgument(name)
code = proc.start()
if code:
pid = proc.processIdentifier()
self.launchPid = pid ## cheap
- QTimer.singleShot(2000, self.embedLaunchedWindow)
+ TQTimer.singleShot(2000, self.embedLaunchedWindow)
else:
print 'failed to start %s' % name
return
@@ -80,13 +80,13 @@ class ExampleForm(QXEmbedExample):
winobj = getWindow(pid)
if winobj:
tabs = self.mainTabs
- embedded = QXEmbed(self)
+ embedded = TQXEmbed(self)
caption = '%s (%s)' % (winobj.name, pid, )
tabs.insertTab(embedded, caption)
embedded.embed(winobj.win)
tabs.showPage(embedded)
pxm = KWin.icon(winobj.win)
- tabs.setTabIconSet(embedded, QIconSet(pxm))
+ tabs.setTabIconSet(embedded, TQIconSet(pxm))
class ExampleMain(KMainWindow):
@@ -101,8 +101,8 @@ class ExampleMain(KMainWindow):
if __name__ == '__main__':
- aname = 'PyKDE QXEmbed Sample'
- desc = 'A Simple PyKDE QXEmbed Sample'
+ aname = 'PyKDE TQXEmbed Sample'
+ desc = 'A Simple PyKDE TQXEmbed Sample'
ver = '1.0'
lic = KAboutData.License_GPL
author = 'Troy Melhase'
diff --git a/examples/uisampler.py b/examples/uisampler.py
index af61e93..211947b 100644
--- a/examples/uisampler.py
+++ b/examples/uisampler.py
@@ -1,7 +1,7 @@
import sys
sys.path.append ("./uimodules")
-from qt import QSplitter, QWidgetStack, QWidget, QListViewItem, SIGNAL, QCString , QScrollView, QRect, Qt
+from qt import TQSplitter, TQWidgetStack, TQWidget, TQListViewItem, SIGNAL, TQCString , TQScrollView, TQRect, TQt
from tdecore import KApplication, KCmdLineArgs, KAboutData
from tdeui import KMainWindow, KListView
@@ -117,12 +117,12 @@ listItems = {"Dialogs":
"KSharedPixmap": [],\
"KSystemTray": [],\
"KThemeBase": ["KThemeCache", "KThemePixmap", "KThemeStyle"],\
- "QXEmbed": []}}
+ "TQXEmbed": []}}
prefix = {"Dialogs": "dlg", "Widgets": "wid", "XML": "xml", "Menus/Toolbars": "menu", "Other": "misc"}
# The following leave about 375 x 390 for the rt hand panel
-mainGeom = QRect (0, 0, 640, 500)
+mainGeom = TQRect (0, 0, 640, 500)
treeWidth = 220
blankMsg = """ UISampler - provides examples of PyKDE widgets
@@ -140,22 +140,22 @@ class MainWin (KMainWindow):
# create the main view - list view on the left and an
# area to display frames on the right
- self.mainView = QSplitter (self, "main view")
+ self.mainView = TQSplitter (self, "main view")
self.tree = KListView (self.mainView, "tree")
- self.page = QWidgetStack (self.mainView, "page")
- self.blankPage = QWidget (self.page, "blank")
+ self.page = TQWidgetStack (self.mainView, "page")
+ self.blankPage = TQWidget (self.page, "blank")
self.blankPage.setGeometry (0, 0, 375, 390)
- self.blankPage.setBackgroundMode (QWidget.PaletteBase)
+ self.blankPage.setBackgroundMode (TQWidget.PaletteBase)
- blankLbl = QLabel (blankMsg, self.blankPage)
+ blankLbl = TQLabel (blankMsg, self.blankPage)
blankLbl.setGeometry (40, 10, 380, 150)
- blankLbl.setBackgroundMode (QWidget.PaletteBase)
+ blankLbl.setBackgroundMode (TQWidget.PaletteBase)
- blankPM = QPixmap ("pytestimage.png")
- pmLbl = QLabel ("", self.blankPage)
+ blankPM = TQPixmap ("pytestimage.png")
+ pmLbl = TQLabel ("", self.blankPage)
pmLbl.setPixmap (blankPM)
pmLbl.setGeometry (40, 160, 300, 200)
- pmLbl.setBackgroundMode (QWidget.PaletteBase)
+ pmLbl.setBackgroundMode (TQWidget.PaletteBase)
self.page.addWidget (self.blankPage, 1)
self.page.raiseWidget (1)
@@ -163,7 +163,7 @@ class MainWin (KMainWindow):
self.setCentralWidget (self.mainView)
self.initListView ()
- self.connect (self.tree, SIGNAL ("clicked (QListViewItem *)"), self.lvClicked)
+ self.connect (self.tree, SIGNAL ("clicked (TQListViewItem *)"), self.lvClicked)
self.edit = None
self.currentPageObj = None
@@ -173,15 +173,15 @@ class MainWin (KMainWindow):
# self.tree.setMaximumWidth (treeWidth)
self.mainView.setSizes ([treeWidth, 375])
self.tree.setRootIsDecorated (True)
- self.tree.setVScrollBarMode (QScrollView.AlwaysOn)
+ self.tree.setVScrollBarMode (TQScrollView.AlwaysOn)
topLevel = listItems.keys ()
for item_1 in topLevel:
- parent = QListViewItem (self.tree, item_1)
+ parent = TQListViewItem (self.tree, item_1)
secondLevel = listItems [item_1].keys ()
for item_2 in secondLevel:
- child = QListViewItem (parent, item_2)
+ child = TQListViewItem (parent, item_2)
for item_3 in listItems [item_1][item_2]:
- QListViewItem (child, item_3)
+ TQListViewItem (child, item_3)
def lvClicked (self, lvItem):
if not lvItem:
@@ -208,9 +208,9 @@ class MainWin (KMainWindow):
self.page.removeWidget (current)
del current
- newPage = QWidget (self.page)
+ newPage = TQWidget (self.page)
newPage.setGeometry (0, 0, 375, 390)
-# newPage.setBackgroundMode (QWidget.PaletteBase)
+# newPage.setBackgroundMode (TQWidget.PaletteBase)
self.page.addWidget (newPage, 2)
self.page.raiseWidget (2)
diff --git a/examples/xmlmenudemo.py b/examples/xmlmenudemo.py
index f9b70b3..1ef5ef7 100644
--- a/examples/xmlmenudemo.py
+++ b/examples/xmlmenudemo.py
@@ -41,7 +41,7 @@ True = not False
import sys, os
-from qt import QPopupMenu, SIGNAL, QLabel, QIconSet
+from qt import TQPopupMenu, SIGNAL, TQLabel, TQIconSet
from tdecore import KApplication, KCmdLineArgs, KAboutData, i18n, KIcon, KIconLoader, KShortcut, KGlobal
from tdeui import KMainWindow, KMessageBox, KStdAction, KAction, KToggleAction, KFontSizeAction, KFontAction, KRadioAction,\
@@ -67,7 +67,7 @@ class MainWin (KMainWindow):
self.dynamicActions()
# Can't do this until the toolBar has been created in createGUI
- stretchlbl = QLabel ("", self.toolBar ())
+ stretchlbl = TQLabel ("", self.toolBar ())
self.toolBar ().setStretchableWidget (stretchlbl)
self.initStatusBar ()
@@ -104,7 +104,7 @@ class MainWin (KMainWindow):
# NOTE!!!! You must specify a parent and name for the action object in its constructor
# Normally in a constructor like
#
- # someObject (QWidget *parent = 0, const char *name = 0)
+ # someObject (TQWidget *parent = 0, const char *name = 0)
#
# the parent may or may not be assigned, but widgets usually ignore the
# name argument. For an action of *any* type (other than KStdAction),
@@ -134,7 +134,7 @@ class MainWin (KMainWindow):
# Need to assign an icon to actionMenu below
icons = KIconLoader ()
- iconSet = QIconSet (icons.loadIcon ("viewmag", KIcon.Toolbar))
+ iconSet = TQIconSet (icons.loadIcon ("viewmag", KIcon.Toolbar))
# Nested menus using KActions (also nested on toolbar)
self.actionMenu = KActionMenu ("Action Menu", acts, "actionMenu")
@@ -271,7 +271,7 @@ class MainWin (KMainWindow):
description = "A basic application template"
version = "1.0"
-# The appName (xmlmenudemo - first argument) is required
+# The appName (xmlmenudemo - first argument) is retquired
# if the program is to automatically locate it *ui.rc file
aboutData = KAboutData ("xmlmenudemo", "xmlmenudemo",\
version, description, KAboutData.License_GPL,\