diff options
Diffstat (limited to 'examples/qxembedexample.py')
-rw-r--r-- | examples/qxembedexample.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/examples/qxembedexample.py b/examples/qxembedexample.py index ab33196..ca37d08 100644 --- a/examples/qxembedexample.py +++ b/examples/qxembedexample.py @@ -11,15 +11,15 @@ from qt import * -class TQXEmbedExample(TQWidget): +class QXEmbedExample(TQWidget): def __init__(self,parent = None,name = None,fl = 0): TQWidget.__init__(self,parent,name,fl) if not name: - self.setName("TQXEmbedExample") + self.setName("QXEmbedExample") - TQXEmbedExampleLayout = TQVBoxLayout(self,11,6,"TQXEmbedExampleLayout") + QXEmbedExampleLayout = TQVBoxLayout(self,11,6,"QXEmbedExampleLayout") layout2 = TQHBoxLayout(None,0,6,"layout2") @@ -32,13 +32,13 @@ class TQXEmbedExample(TQWidget): layout2.addWidget(self.launchButton) spacer1 = TQSpacerItem(209,31,TQSizePolicy.Expanding,TQSizePolicy.Minimum) layout2.addItem(spacer1) - TQXEmbedExampleLayout.addLayout(layout2) + QXEmbedExampleLayout.addLayout(layout2) self.line1 = TQFrame(self,"line1") self.line1.setFrameShape(TQFrame.HLine) self.line1.setFrameShadow(TQFrame.Sunken) self.line1.setFrameShape(TQFrame.HLine) - TQXEmbedExampleLayout.addWidget(self.line1) + QXEmbedExampleLayout.addWidget(self.line1) self.mainTabs = TQTabWidget(self,"mainTabs") @@ -48,7 +48,7 @@ class TQXEmbedExample(TQWidget): self.textLabel1 = TQLabel(self.tab,"textLabel1") tabLayout.addWidget(self.textLabel1) self.mainTabs.insertTab(self.tab,TQString("")) - TQXEmbedExampleLayout.addWidget(self.mainTabs) + QXEmbedExampleLayout.addWidget(self.mainTabs) self.languageChange() @@ -59,13 +59,13 @@ class TQXEmbedExample(TQWidget): def languageChange(self): - self.setCaption(self.__tr("TQXEmbed Example")) + self.setCaption(self.__tr("QXEmbed 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>TQXEmbed Example</b>\n" + self.textLabel1.setText(self.__tr("<b>QXEmbed 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 TQXEmbedExample(TQWidget): def launchApp(self): - print "TQXEmbedExample.launchApp(): Not implemented yet" + print "QXEmbedExample.launchApp(): Not implemented yet" def __tr(self,s,c = None): - return qApp.translate("TQXEmbedExample",s,c) + return qApp.translate("QXEmbedExample",s,c) |