Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion traitsui/wx/toolkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# Make sure a wx.App object is created early:
_app = wx.GetApp()
if _app is None:
_app = wx.PySimpleApp()
_app = wx.App(redirect=False)

from traits.api \
import HasPrivateTraits, Instance, Property, Category, cached_property
Expand Down
6 changes: 2 additions & 4 deletions traitsui/wx/view_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def view_application ( context, view, kind, handler, id, scrollable, args ):
# 'ViewApplication' class:
#-------------------------------------------------------------------------------

class ViewApplication ( wx.PySimpleApp ):
class ViewApplication ( wx.App ):
""" Modal window that contains a stand-alone application.
"""
#---------------------------------------------------------------------------
Expand All @@ -108,8 +108,6 @@ def __init__ ( self, context, view, kind, handler, id, scrollable, args ):
self.scrollable = scrollable
self.args = args

wx.InitAllImageHandlers()

if os.environ.get( 'ENABLE_FBI' ) is not None:
try:
from etsdevtools.developer.helper.fbi import enable_fbi
Expand All @@ -120,7 +118,7 @@ def __init__ ( self, context, view, kind, handler, id, scrollable, args ):
if redirect_filename.strip() != '':
super( ViewApplication, self ).__init__( 1, redirect_filename )
else:
super( ViewApplication, self ).__init__()
super( ViewApplication, self ).__init__(0)

# Start the event loop in an IPython-conforming manner.
start_event_loop_wx(self)
Expand Down