Changeset 81:fe57c64efe5e for src/mlx/gui
- Timestamp:
- 04/14/12 09:19:22 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/gui.py
r80 r81 309 309 """Quit and restart the application.""" 310 310 self.toRestart = True 311 self._quit( )311 self._quit(force = True) 312 312 313 313 def flushStdIO(self): … … 419 419 self._logView.scroll_mark_onscreen(buffer.get_insert()) 420 420 421 def _quit(self, what = None ):421 def _quit(self, what = None, force = False): 422 422 """Quit from the application.""" 423 dialog = gtk.MessageDialog(type = MESSAGETYPE_QUESTION, 424 buttons = BUTTONSTYPE_YES_NO, 425 message_format = 426 "Are you sure to quit the logger?") 427 result = dialog.run() 428 dialog.hide() 423 if force: 424 result=RESPONSETYPE_YES 425 else: 426 dialog = gtk.MessageDialog(type = MESSAGETYPE_QUESTION, 427 buttons = BUTTONSTYPE_YES_NO, 428 message_format = 429 "Are you sure to quit the logger?") 430 result = dialog.run() 431 dialog.hide() 429 432 430 433 if result==RESPONSETYPE_YES:
Note:
See TracChangeset
for help on using the changeset viewer.