View Issue Details

IDProjectCategoryView StatusLast Update
0000572ascendpygtk guipublic2013-06-20 18:10
Reporterpallavtinna 
Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0000572: Interface Hangs on Ipython exit or quit call
DescriptionIpython console becomes unstable on exit() or quit() call.
TagsNo tags attached.

Relationships

Activities

pallavtinna

2013-03-29 20:39

developer   ~0000966

Provided a Temporary fix for now by Mapping exit() and quit() calls to None.

pallavtinna

2013-04-20 18:27

developer  

removeTemporaryfix.patch (329 bytes)
105,115d104
< ################################################################
< # Temporary fix for now
< 
< # Mapping exit and quit calls to None
<     
<     self.updateNamespace({'exit':lambda:None})
<     self.updateNamespace({'quit':lambda:None})
< 
< ################################################################
< 
< 

pallavtinna

2013-04-20 18:28

developer  

console_bug572.patch (703 bytes)
21a22,38
> 
> # Displays a confimation dialog box to quit pygtk main_window
> # This method is mapped to quit() and exit() calls in the ipython console.
> 
> def close_window_on_confirm(browser):
> 	dialog = gtk.MessageDialog(browser.window, gtk.DIALOG_MODAL,
> 	                           gtk.MESSAGE_INFO, gtk.BUTTONS_YES_NO,"Are you sure you want to quit ASCEND?")
> 
> 	dialog.set_title("Quit")
> 	response = dialog.run()
> 	dialog.destroy()
> 	if response == gtk.RESPONSE_YES:
> 		browser.do_quit()
> 		return False
> 	else:
> 		return True
> 
40a58,60
> 	V.updateNamespace({'exit':lambda:close_window_on_confirm(browser)})
> 	V.updateNamespace({'quit':lambda:close_window_on_confirm(browser)})
> 
console_bug572.patch (703 bytes)

pallavtinna

2013-04-20 18:28

developer   ~0000967

-> Removed the temporary fix.
-> Added a new method close_window_on_confirm(), which displays a confimation dialog box to quit pygtk main_window.
-> This method is mapped to quit() and exit() calls in the ipython console.

removeTemporaryfix.patch -> ipython_view.py
console_bug572.patch -> console.py

Issue History

Date Modified Username Field Change
2013-03-28 08:29 pallavtinna New Issue
2013-03-29 20:39 pallavtinna Note Added: 0000966
2013-04-20 18:27 pallavtinna File Added: removeTemporaryfix.patch
2013-04-20 18:28 pallavtinna File Added: console_bug572.patch
2013-04-20 18:28 pallavtinna Note Added: 0000967
2013-06-05 21:12 svn
2013-06-20 18:10 pallavtinna Status new => resolved