summaryrefslogtreecommitdiffstats
path: root/examples/uimodules/uiwidgets.py
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:09:42 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:09:42 -0600
commit2df6bde18ab40472f2df8637cf6456cb80dc2329 (patch)
tree5a4362124ff46786fce835d2f1e7d583c92a5670 /examples/uimodules/uiwidgets.py
parentbe6cfa4b990910e65e8d2f4f212eba3f7da6ee72 (diff)
downloadpytde-2df6bde18ab40472f2df8637cf6456cb80dc2329.tar.gz
pytde-2df6bde18ab40472f2df8637cf6456cb80dc2329.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'examples/uimodules/uiwidgets.py')
-rw-r--r--examples/uimodules/uiwidgets.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/examples/uimodules/uiwidgets.py b/examples/uimodules/uiwidgets.py
index 35e6a34..c6f4df4 100644
--- a/examples/uimodules/uiwidgets.py
+++ b/examples/uimodules/uiwidgets.py
@@ -4,8 +4,8 @@ from qt import TQLabel, TQFrame, TQColor, TQPushButton, SIGNAL, TQButtonGroup, T
TQWidget, TQTimer
from tdecore import TDEApplication
-from tdeui import KEdit, KComboBox, KColorCombo, KEditListBox, KListBox, KLineEdit, KRestrictedLine,\
- KSqueezedTextLabel, KFontChooser, KButtonBox, KColorButton, KColorCells,\
+from tdeui import KEdit, KComboBox, KColorCombo, KEditListBox, TDEListBox, KLineEdit, KRestrictedLine,\
+ KSqueezedTextLabel, TDEFontChooser, KButtonBox, KColorButton, KColorCells,\
KColorPatch, KDualColorButton,\
KRootPermsIcon, KWritePermsIcon, KCharSelect, KDialog, KLed, KRootPixmap,\
KTabCtl, KProgress, KDatePicker, KDateTable, KGradientSelector, KHSSelector,\
@@ -174,11 +174,11 @@ class Page2:
editListBox.insertStrList (["One", "Two", "Three"])
editListBox.show ()
- lbLbl = TQLabel ("KListBox", self.page)
+ lbLbl = TQLabel ("TDEListBox", self.page)
lbLbl.setGeometry (x2, y2, 100, 20)
lbLbl.show ()
- listBox = KListBox (self.page)
+ listBox = TDEListBox (self.page)
listBox.setGeometry (x2, y2 + 20, 100, 100)
listBox.insertStrList (["One", "Two", "Three"])
listBox.show ()
@@ -190,11 +190,11 @@ class Page3:
x = 10
y = 10
- fontLbl = TQLabel ("KFontChooser", self.page)
+ fontLbl = TQLabel ("TDEFontChooser", self.page)
fontLbl.setGeometry (x, y, 95, 20)
fontLbl.show ()
- fontChoose = KFontChooser (self.page)
+ fontChoose = TDEFontChooser (self.page)
fontChoose.setGeometry (x, y + 20, 375, 300)
fontChoose.show ()
@@ -576,7 +576,7 @@ class PageThisApp:
x = 10
y = 10
- taLbl = TQLabel ("This application uses KMainWindow as its top level widget\n and KListView in the"\
+ taLbl = TQLabel ("This application uses TDEMainWindow as its top level widget\n and TDEListView in the"\
" left-hand panel", self.page)
taLbl.setGeometry (x, y, 300, 60)
taLbl.show ()
@@ -672,7 +672,7 @@ def widKEdit (parent):
def widKEditListBox (parent):
parent.currentPageObj = Page2 (parent)
-def widKFontChooser (parent):
+def widTDEFontChooser (parent):
parent.currentPageObj = Page3 (parent)
def widKHSSelector (parent):
@@ -696,10 +696,10 @@ def widKLed (parent):
def widKLineEdit (parent):
parent.currentPageObj = Page1 (parent)
-def widKListBox (parent):
+def widTDEListBox (parent):
parent.currentPageObj = Page2 (parent)
-def widKListView (parent):
+def widTDEListView (parent):
parent.currentPageObj = PageThisApp (parent)
def widKNumInput (parent):
@@ -717,7 +717,7 @@ def widKProgress (parent):
def widKRootPixmap (parent):
parent.currentPageObj = PageNotImpl (parent)
-def widKMainWindow (parent):
+def widTDEMainWindow (parent):
parent.currentPageObj = PageThisApp (parent)
def widKRestrictedLine (parent):
@@ -726,7 +726,7 @@ def widKRestrictedLine (parent):
def widKRuler (parent):
parent.currentPageObj = PageNotImpl (parent)
-def widKSelector (parent):
+def widTDESelector (parent):
parent.currentPageObj = Page4 (parent)
def widKSeparator (parent):