Skip to content

Commit

Permalink
Prevent close when close of log win is clicked.
Browse files Browse the repository at this point in the history
  • Loading branch information
weijia committed Aug 12, 2012
1 parent 8e12956 commit e635b56
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions trunk/prodRoot/localLibs/qtconsole/PyQtConsoleOutputWnd.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,19 @@ def on_close_clicked(self, widget):
#return False

def updateViewCallback(self, data):
self.log_updated_signal.emit(data)
self.log_updated_signal.emit(data.replace('\r\n', '\n'))

def updateView(self, data):
#print "updateView:", data
if not (self.logFile is None):
self.logFile.write(data)
self.append(data)

def closeEvent(self,event):
# Let the Exit button handle tab closing
print "close event captured. Do nothing.", event
#"minimize"
self.hide()
event.ignore()
'''
def set_title(self, title):
self.window.set_title(title)
Expand Down

0 comments on commit e635b56

Please sign in to comment.