diff options
Diffstat (limited to 'examples/uisampler.py')
-rw-r--r-- | examples/uisampler.py | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/examples/uisampler.py b/examples/uisampler.py index 7eab781..a166116 100644 --- a/examples/uisampler.py +++ b/examples/uisampler.py @@ -4,7 +4,7 @@ sys.path.append ("./uimodules") from qt import TQSplitter, TQWidgetStack, TQWidget, TQListViewItem, SIGNAL, TQCString , TQScrollView, TQRect, TQt from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData -from tdeui import KMainWindow, KListView +from tdeui import TDEMainWindow, TDEListView from uidialogs import * from uiwidgets import * @@ -23,7 +23,7 @@ listItems = {"Dialogs": "KColorDialog": [],\ "KDialog": [],\ "KDialogBase": ["KDialogBaseButton", "KDialogBase::SButton", "KDialogBaseTile"],\ - "KFontDialog": [],\ + "TDEFontDialog": [],\ "KKeyDialog": [],\ "KLineEditDlg": [],\ "KMessageBox": [],\ @@ -47,42 +47,42 @@ listItems = {"Dialogs": "KDualColorButton": [],\ "KEdit": ["KEdFind", "KEdGotoLine", "KEdReplace"],\ "KEditListBox": [],\ - "KFontChooser": [],\ + "TDEFontChooser": [],\ "KHSSelector": [],\ "KIconView": [],\ "KJanusWidget": ["KJanusWidget::IconListBox"],\ "KKeyChooser": [],\ "KLed": [],\ "KLineEdit": [],\ - "KListBox": [],\ - "KListView": [],\ + "TDEListBox": [],\ + "TDEListView": [],\ "KNumInput": ["KDoubleNumInput", "KIntNumInput"],\ "KPaletteTable": [],\ "KPasswordEdit": [],\ "KProgress": [],\ "KRootPixmap": [],\ - "KMainWindow": [],\ + "TDEMainWindow": [],\ "KRestrictedLine": [],\ "KRuler": [],\ - "KSelector": ["KGradientSelector", "KValueSelector", "KHSSelector", "KXYSelector"],\ + "TDESelector": ["KGradientSelector", "KValueSelector", "KHSSelector", "KXYSelector"],\ "KSeparator": [],\ "KSqueezedTextLabel": [],\ "KTabCtl": [],\ "KTextBrowser": [],\ "KURLLabel": []},\ "XML": - {"KActionCollection": [],\ + {"TDEActionCollection": [],\ "KEditToolbar": [],\ "KEditToolbarWidget": [],\ "KXMLGUIBuilder": [],\ "KXMLGUIClient": ["KXMLGUIClient::DocStruct"],\ "KXMLGUIFactory": []},\ "Menus/Toolbars": - {"KAccelMenu": [],\ - "KAction": ["KFontAction", "KFontSizeAction", "KListAction", "KRecentFilesAction", "KRadioAction",\ - "KSelectAction", "KToggleAction"],\ - "KActionMenu": [],\ - "KActionSeparator": [],\ + {"TDEAccelMenu": [],\ + "TDEAction": ["TDEFontAction", "TDEFontSizeAction", "TDEListAction", "TDERecentFilesAction", "TDERadioAction",\ + "TDESelectAction", "TDEToggleAction"],\ + "TDEActionMenu": [],\ + "TDEActionSeparator": [],\ "KContextMenuManager": [],\ "KDCOPActionProxy": [],\ "KHelpMenu": [],\ @@ -90,14 +90,14 @@ listItems = {"Dialogs": "KPanelApplet": [],\ "KPanelExtension": [],\ "KPanelMenu": [],\ - "KPopupFrame": [],\ - "KPopupMenu": [],\ - "KPopupTitle": [],\ + "TDEPopupFrame": [],\ + "TDEPopupMenu": [],\ + "TDEPopupTitle": [],\ "KStatusBar": [],\ "KStatusBarLabel": [],\ "KStdAction": [],\ - "KToolBar": ["KToolBarButton", "KToolBarButtonList", "KToolBarPopupAction",\ - "KToolBarRadioGroup", "KToolBarSeparator"],\ + "TDEToolBar": ["TDEToolBarButton", "TDEToolBarButtonList", "TDEToolBarPopupAction",\ + "TDEToolBarRadioGroup", "TDEToolBarSeparator"],\ "KWindowListMenu": []},\ "Other": {"KAlphaPainter": [],\ @@ -131,9 +131,9 @@ Select a dialog/widget/menu/etc example from the tree at left """ -class MainWin (KMainWindow): +class MainWin (TDEMainWindow): def __init__ (self, *args): - apply (KMainWindow.__init__, (self,) + args) + apply (TDEMainWindow.__init__, (self,) + args) self.setCaption ("Samples of PyKDE widget usage") self.setGeometry (mainGeom) @@ -141,7 +141,7 @@ class MainWin (KMainWindow): # create the main view - list view on the left and an # area to display frames on the right self.mainView = TQSplitter (self, "main view") - self.tree = KListView (self.mainView, "tree") + self.tree = TDEListView (self.mainView, "tree") self.page = TQWidgetStack (self.mainView, "page") self.blankPage = TQWidget (self.page, "blank") self.blankPage.setGeometry (0, 0, 375, 390) |