diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-27 21:01:13 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-27 21:01:13 -0600 |
commit | e087f4bae70208de4f9c6a60816c5f3738c4b47c (patch) | |
tree | 124f334b4cbfdaa7e0ef4013378c2c8f4de97b5f /examples | |
parent | 6f927e3813af49a237670d3b42366a43c126b0a9 (diff) | |
download | pytde-e087f4bae70208de4f9c6a60816c5f3738c4b47c.tar.gz pytde-e087f4bae70208de4f9c6a60816c5f3738c4b47c.zip |
Rename kiobuffer and KHTML
Diffstat (limited to 'examples')
-rw-r--r-- | examples/pyTDEHTMLPart.py (renamed from examples/pyKHTMLPart.py) | 16 | ||||
-rw-r--r-- | examples/pytde-sampler/qt_widgets/CONTRIB | 6 | ||||
-rwxr-xr-x | examples/pytde-sampler/sampler.py | 2 |
3 files changed, 12 insertions, 12 deletions
diff --git a/examples/pyKHTMLPart.py b/examples/pyTDEHTMLPart.py index 2795526..e4e209f 100644 --- a/examples/pyKHTMLPart.py +++ b/examples/pyTDEHTMLPart.py @@ -5,13 +5,13 @@ """ This is an extemely simple and crude example of using -a KHTMLPart - I put it together mostly to make sure +a TDEHTMLPart - I put it together mostly to make sure the openURL method worked correctly after some modifications done in KParts::ReadOnlyPart. It took exactly four lines added to a basic PyKDE app framework to display a URL via the 'net: - self.w = KHTMLPart (self, "HTMLPart", self); + self.w = TDEHTMLPart (self, "HTMLPart", self); self.w.openURL (KURL ("http://www.kde.org")); self.w.view ().setGeometry (30, 55, 500, 400); self.w.show (); @@ -35,7 +35,7 @@ NOTE!!! For this to work, you (obviously) need to have a route to the internet established or specify a local URL - PyKDE/KDE will take care of everything else. -Perceptive users will notice the KHTMLPart code is +Perceptive users will notice the TDEHTMLPart code is lifted from the KDE classref. """ @@ -51,7 +51,7 @@ from qt import TQString, TQStringList from kio import KTrader -from tdehtml import KHTMLPart, KHTMLView +from tdehtml import TDEHTMLPart, TDEHTMLView # Importing the KParts namespace gets us all of the KParts:: classes from tdeparts import KParts, createReadOnlyPart, createReadWritePart @@ -99,13 +99,13 @@ class pyPartsMW (KParts.MainWindow): # create a web browser (of course you have to edit # this file to change url's) - self.w = KHTMLPart (self, "HTMLPart", self); + self.w = TDEHTMLPart (self, "HTMLPart", self); self.w.openURL (KURL ("http://www.kde.org")); self.w.view ().setGeometry (30, 55, 500, 400); -# self.v = KHTMLView (self.w, self) +# self.v = TDEHTMLView (self.w, self) # self.setCentralWidget (self.v) @@ -181,12 +181,12 @@ class pyPartsMW (KParts.MainWindow): #------------- main ---------------------------- # A Human readable description of your program -description = "KHTMLPart - simple example" +description = "TDEHTMLPart - simple example" # The version version = "0.1" # stuff for the "About" menu -aboutData = TDEAboutData ("pyKHTMLPart", "pyHTMLPart",\ +aboutData = TDEAboutData ("pyTDEHTMLPart", "pyHTMLPart",\ version, description, TDEAboutData.License_GPL,\ "(c) 2002, Jim Bublitz") diff --git a/examples/pytde-sampler/qt_widgets/CONTRIB b/examples/pytde-sampler/qt_widgets/CONTRIB index 4e46cd7..1bd8f38 100644 --- a/examples/pytde-sampler/qt_widgets/CONTRIB +++ b/examples/pytde-sampler/qt_widgets/CONTRIB @@ -393,9 +393,9 @@ tdefile,KURLPropsPlugin,,, tdefile,KURLRequester,,, tdefile,KURLRequesterDlg,,, tdehtml,DOM,,, -tdehtml,KHTMLPart,,, -tdehtml,KHTMLSettings,,, -tdehtml,KHTMLView,,, +tdehtml,TDEHTMLPart,,, +tdehtml,TDEHTMLSettings,,, +tdehtml,TDEHTMLView,,, kio,KAr,,, kio,KArchive,,, kio,KArchiveDirectory,,, diff --git a/examples/pytde-sampler/sampler.py b/examples/pytde-sampler/sampler.py index f90a1bb..2a8146e 100755 --- a/examples/pytde-sampler/sampler.py +++ b/examples/pytde-sampler/sampler.py @@ -23,7 +23,7 @@ from tdeui import KKeyDialog, KEditToolbar from kio import KTrader from tdeparts import createReadOnlyPart, createReadWritePart -from tdehtml import KHTMLPart +from tdehtml import TDEHTMLPart import about import lib |