diff options
Diffstat (limited to 'examples/tqmag.py')
-rwxr-xr-x | examples/tqmag.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/tqmag.py b/examples/tqmag.py index 1a7e448..1d7d4c0 100755 --- a/examples/tqmag.py +++ b/examples/tqmag.py @@ -40,12 +40,12 @@ class MagWidget(TQWidget): self.zoom = TQComboBox(FALSE, self) self.zoom.insertStrList(zoomfactors, len(zoomfactors)) - self.connect(self.zoom, SIGNAL("activated(int)"), + self.connect(self.zoom, TQ_SIGNAL("activated(int)"), self.setZoom) self.refresh = TQComboBox(FALSE, self) self.refresh.insertStrList(refreshrates, len(refreshrates)) - self.connect(self.refresh, SIGNAL("activated(int)"), + self.connect(self.refresh, TQ_SIGNAL("activated(int)"), self.setRefresh) x = 0 @@ -64,13 +64,13 @@ class MagWidget(TQWidget): self.refresh.setGeometry(x, 2, w + 30, h) self.saveButton = TQPushButton(self) - self.connect(self.saveButton, SIGNAL("clicked()"), self.save) + self.connect(self.saveButton, TQ_SIGNAL("clicked()"), self.save) self.saveButton.setText("Save") self.saveButton.setGeometry(x + w + 30 + 2, 2, 10 + self.saveButton.fontMetrics().width("Save"), h) self.quitButton = TQPushButton(self) - self.connect(self.quitButton, SIGNAL("clicked()"), self.tqApp, SLOT("quit()")) + self.connect(self.quitButton, TQ_SIGNAL("clicked()"), self.tqApp, TQ_SLOT("quit()")) self.quitButton.setText("Quit") self.quitButton.setGeometry(self.saveButton.geometry().right() + 2, 2, 10 + self.quitButton.fontMetrics().width("Quit"), h) |