rhythmbox r5811 - in trunk: . plugins/pythonconsole
- From: jmatthew svn gnome org
- To: svn-commits-list gnome org
- Subject: rhythmbox r5811 - in trunk: . plugins/pythonconsole
- Date: Wed, 16 Jul 2008 10:31:28 +0000 (UTC)
Author: jmatthew
Date: Wed Jul 16 10:31:28 2008
New Revision: 5811
URL: http://svn.gnome.org/viewvc/rhythmbox?rev=5811&view=rev
Log:
2008-07-16 Jonathan Matthew <jonathan d14n org>
* plugins/pythonconsole/pythonconsole.py:
Explain how to use the python debugger a bit. Fixes #541445.
Modified:
trunk/ChangeLog
trunk/plugins/pythonconsole/pythonconsole.py
Modified: trunk/plugins/pythonconsole/pythonconsole.py
==============================================================================
--- trunk/plugins/pythonconsole/pythonconsole.py (original)
+++ trunk/plugins/pythonconsole/pythonconsole.py Wed Jul 16 10:31:28 2008
@@ -130,9 +130,17 @@
self.window.grab_focus()
def enable_debugging(self, action, shell):
- gconfclient = gconf.client_get_default()
- password = gconfclient.get_string('/apps/rhythmbox/plugins/pythonconsole/rpdb2_password')
- rpdb2.start_embedded_debugger(password)
+ msg = _("After you press OK, Rhythmbox will wait until you connect to it with winpdb or rpdb2. If you have not set a debugger password in GConf, it will use the default password ('rhythmbox').")
+ dialog = gtk.MessageDialog(None, 0, gtk.MESSAGE_INFO, gtk.BUTTONS_OK_CANCEL, msg)
+ if dialog.run() == gtk.RESPONSE_OK:
+ gconfclient = gconf.client_get_default()
+ password = gconfclient.get_string('/apps/rhythmbox/plugins/pythonconsole/rpdb2_password') or "rhythmbox"
+ def start_debugger(password):
+ rpdb2.start_embedded_debugger(password)
+ return False
+
+ gobject.idle_add(start_debugger, password)
+ dialog.destroy()
def destroy_console(self, *args):
self.window.destroy()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]