diff options
Diffstat (limited to 'lib/kross/test/testgui.py')
-rw-r--r-- | lib/kross/test/testgui.py | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/kross/test/testgui.py b/lib/kross/test/testgui.py index f252184d..a7353873 100644 --- a/lib/kross/test/testgui.py +++ b/lib/kross/test/testgui.py @@ -44,8 +44,8 @@ class QtTest: apply(qt.QPushButton.__init__, (self,) + args) class ComboBox(qt.QHBox): - def __init__(self, parent, caption, items = []): - qt.QHBox.__init__(self, parent) + def __init__(self, tqparent, caption, items = []): + qt.QHBox.__init__(self, tqparent) self.setSpacing(6) label = qt.QLabel(str(caption), self) self.combobox = qt.QComboBox(self) @@ -85,31 +85,31 @@ class QtTest: self.edit.setText(filename) class Dialog(qt.QDialog): - def __init__(self, parent = None, name = None, modal = 0, fl = 0): - qt.QDialog.__init__(self, parent, name, modal, fl) + def __init__(self, tqparent = None, name = None, modal = 0, fl = 0): + qt.QDialog.__init__(self, tqparent, name, modal, fl) qt.QDialog.accept = self.accept self.setCaption("Export to HTML") - #self.layout() + #self.tqlayout() - self.layout = qt.QVBoxLayout(self) - self.layout.setSpacing(6) - self.layout.setMargin(11) + self.tqlayout = qt.QVBoxLayout(self) + self.tqlayout.setSpacing(6) + self.tqlayout.setMargin(11) infolabel = qt.QLabel("Export the data of a table or a query to a HTML-file.", self) - self.layout.addWidget(infolabel) + self.tqlayout.addWidget(infolabel) source = ComboBox(self, "Datasource:") - self.layout.addWidget(source) + self.tqlayout.addWidget(source) self.exporttype = ComboBox(self, "Style:", ["Plain","Paper","Desert","Blues"]) - self.layout.addWidget(self.exporttype) + self.tqlayout.addWidget(self.exporttype) self.filechooser = FileChooser(self) - self.layout.addWidget(self.filechooser) + self.tqlayout.addWidget(self.filechooser) buttonbox = qt.QHBox(self) buttonbox.setSpacing(6) - self.layout.addWidget(buttonbox) + self.tqlayout.addWidget(buttonbox) savebutton = Button("Save", buttonbox) qt.QObject.connect(savebutton, qt.SIGNAL("clicked()"), self, qt.SLOT("accept()")) @@ -139,7 +139,7 @@ class QtTest: #support.swapThreadState() # calls appropriate c-function return qt.QDialog.event(self, e) - app = qt.qApp + app = qt.tqApp dialog = Dialog(app.mainWidget(), "Dialog", 1) dialog.show() |