Package: pyenchant / 1.6.6-2

wxpython3.0.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Description: Update for wxPython 3.0
 These changes should remain compatible with wxPython 2.8.
Bug-Debian: https://bugs.debian.org/759075
Forwarded: no
Last-Update: 2014-09-14

--- pyenchant-1.6.6.orig/enchant/checker/wxSpellCheckerDialog.py
+++ pyenchant-1.6.6/enchant/checker/wxSpellCheckerDialog.py
@@ -256,7 +256,7 @@ def _test():
     from enchant.checker import SpellChecker
     text = "This is sme text with a fw speling errors in it. Here are a fw more to tst it ut."
     printf(["BEFORE:", text])
-    app = wx.PySimpleApp()
+    app = wx.App(False)
     dlg = TestDialog()
     chkr = SpellChecker("en_US",text)
     dlg.SetSpellChecker(chkr)
--- pyenchant-1.6.6.orig/tools/wx_example.py
+++ pyenchant-1.6.6/tools/wx_example.py
@@ -10,7 +10,7 @@ text = "this is some smple text with a f
 print "[INITIAL TEXT:]", text
 
 # Need to have an App before any windows will be shown
-app = wx.PySimpleApp()
+app = wx.App(False)
 
 # Construct the dialog, and the SpellChecker it is to use
 dlg = wxSpellCheckerDialog(None)