From 0bd929dc06d73c7ade56dd914419b5455ff8d072 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 2 Nov 2014 09:05:22 +0100 Subject: [PATCH] Add message "Not yet implemented" when clicking on "Preferences" button (closes #1) --- qweechat/qweechat.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qweechat/qweechat.py b/qweechat/qweechat.py index 73f7b43..1b5f8ca 100644 --- a/qweechat/qweechat.py +++ b/qweechat/qweechat.py @@ -73,6 +73,7 @@ class MainWindow(QTGUI.QMainWindow): self.about_dialog = None self.connection_dialog = None + self.preferences_dialog = None # network self.network = Network() @@ -196,7 +197,10 @@ class MainWindow(QTGUI.QMainWindow): def open_preferences_dialog(self): """Open a dialog with preferences.""" - pass # TODO + # TODO: implement the preferences dialog box + messages = ['Not yet implemented!', + ''] + self.preferences_dialog = AboutDialog('Preferences', messages, self) def save_connection(self): """Save connection configuration."""