diff options
Diffstat (limited to 'examples/pytde-sampler/sampler.py')
-rwxr-xr-x | examples/pytde-sampler/sampler.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/pytde-sampler/sampler.py b/examples/pytde-sampler/sampler.py index dfb2a06..30e1828 100755 --- a/examples/pytde-sampler/sampler.py +++ b/examples/pytde-sampler/sampler.py @@ -17,8 +17,8 @@ from qt import TQSizePolicy, TQHBoxLayout, TQSpacerItem, TQPushButton from tdecore import i18n, TDEAboutData, TDEApplication, TDECmdLineArgs, TDEGlobal from tdecore import TDEGlobalSettings, KWin, KWinModule, KURL, KIcon -from tdeui import KComboBox, KListView, KListViewItem, KTabWidget, KTextEdit -from tdeui import KMainWindow, KPushButton, KSplashScreen, KStdAction +from tdeui import KComboBox, TDEListView, TDEListViewItem, KTabWidget, KTextEdit +from tdeui import TDEMainWindow, KPushButton, KSplashScreen, KStdAction from tdeui import KKeyDialog, KEditToolbar from kio import TDETrader @@ -197,12 +197,12 @@ class OutputFrame(KTextEdit): return getattr(self.filehandle, name) -class SamplerListView(KListView): +class SamplerListView(TDEListView): """ the main list view of samples """ def __init__(self, parent): - KListView.__init__(self, parent) + TDEListView.__init__(self, parent) self.addColumn(i18n('Sample')) self.setRootIsDecorated(True) @@ -217,7 +217,7 @@ class SamplerListView(KListView): topname, subnames = names[0], names[1:] item = roots.get(topname, None) if item is None: - roots[topname] = item = KListViewItem(self, module.labelText()) + roots[topname] = item = TDEListViewItem(self, module.labelText()) item.module = module item.setPixmap(0, getIcon(module.icon())) @@ -228,7 +228,7 @@ class SamplerListView(KListView): item = cache.get(bname, None) if item is None: subitem = cache[bname] = \ - KListViewItem(subitem, module.labelText()) + TDEListViewItem(subitem, module.labelText()) subitem.module = module subitem.setPixmap(0, getIcon(module.icon())) subitem = item @@ -237,12 +237,12 @@ class SamplerListView(KListView): self.setOpen(root, True) -class SamplerMainWindow(KMainWindow): +class SamplerMainWindow(TDEMainWindow): """ the main window """ def __init__(self, *args): - KMainWindow.__init__(self, *args) + TDEMainWindow.__init__(self, *args) self.hSplitter = hSplit = TQSplitter(TQt.Horizontal, self) self.samplesList = samplesList = SamplerListView(hSplit) self.vSplitter = vSplit = TQSplitter(TQt.Vertical, hSplit) |