File: suppress-wxdebug-assertion-messages.diff

package info (click to toggle)
gamera 3.4.1%2Bsvn1423-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 22,292 kB
  • ctags: 25,015
  • sloc: xml: 122,324; ansic: 50,812; cpp: 50,489; python: 34,987; makefile: 119; sh: 101
file content (18 lines) | stat: -rw-r--r-- 711 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: suppress wxdebug assertion messages
 gamera-gui: prevent warning on not properly closed event handlers
 on exit
Author: Daniel Stender <debian@danielstender.com>
Bug: http://bugs.debian.org/758578
Forwarded: http://sourceforge.net/p/gamera/code/1424/tree//trunk/gamera/gamera/gui/gui.py?diff=50c1e1f034309d0a1716b4b0:1423
Last-Update: 2014-08-26

--- a/gamera/gui/gui.py
+++ b/gamera/gui/gui.py
@@ -569,6 +569,7 @@ def run(startup=_show_shell):
 
       # wxWindows calls this method to initialize the application
       def OnInit(self):
+         self.SetAssertMode(wx.PYAPP_ASSERT_SUPPRESS)
          self.SetAppName("Gamera")
          self.splash = GameraSplash()
          self.splash.Show()