[Mac] Fonts selection raises NotImplementedError and freezes UI

Bug #539366 reported by Stani
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Phatch
Fix Released
Critical
Stani

Bug Description

When you try to select a font on the mac, an NotImplemented error is raised.

Tags: mac
Stani (stani)
summary: - mac-fonts-ui
+ [Mac] Fonts ui crashes
Stani (stani)
Changed in phatch:
importance: High → Critical
Revision history for this message
Stani (stani) wrote :

$ bzr diff
=== modified file 'phatch/lib/pyWx/autoCompleteCtrls.py'
--- phatch/lib/pyWx/autoCompleteCtrls.py 2010-03-10 04:13:27 +0000
+++ phatch/lib/pyWx/autoCompleteCtrls.py 2010-03-17 12:40:13 +0000
@@ -21,7 +21,12 @@
 import graphics
 from other.pyWx.TextCtrlAutoComplete import TextCtrlAutoComplete

-if hasattr(wx, "PopupWindow"):
+#if hasattr(wx, "PopupWindow"):
+if wx.Platform == '__WXMAC__':
+
+ AutoCompleteTextCtrl = AutoCompleteIconCtrl = wx.ComboBox
+
+else:

     class AutoCompleteTextCtrl(TextCtrlAutoComplete):
         def __init__(self, parent, id, value, style, choices):
@@ -250,6 +255,3 @@
             # and fetch if setting a single column:
             self._colSearch = 0
             self._colFetch = -1
-
-else:
- AutoCompleteTextCtrl = AutoCompleteIconCtrl = wx.ComboBox

$ bzr commit
Committing to: /home/stani/sync/python/phatch/repo/trunk/
modified phatch/lib/pyWx/autoCompleteCtrls.py

Ran 156 license tests in 2.337s
----------------------------------------------------------------------
Ran 61 tests in 0.500s

OK
----------------------------------------------------------------------
Ran 154 PEP8 tests in 0.430s

Ran precommit tests in 10.163s

Committed revision 1859.

summary: - [Mac] Fonts ui crashes
+ [Mac] Fonts selection raises NotImplementedError and freezes UI
Changed in phatch:
assignee: nobody → Stani (stani)
status: Confirmed → Fix Committed
Stani (stani)
Changed in phatch:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.