mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 19:10:09 +01:00
@@ -274,8 +274,8 @@ class EditorNotebookFrame(EditorFrame):
|
|||||||
Called automatically by base class during init."""
|
Called automatically by base class during init."""
|
||||||
self.notebook = EditorNotebook(parent=self)
|
self.notebook = EditorNotebook(parent=self)
|
||||||
intro = 'Py %s' % version.VERSION
|
intro = 'Py %s' % version.VERSION
|
||||||
import imp
|
import types
|
||||||
module = imp.new_module('__main__')
|
module = types.ModuleType('__main__')
|
||||||
module.__dict__['__builtins__'] = __builtins__
|
module.__dict__['__builtins__'] = __builtins__
|
||||||
namespace = module.__dict__.copy()
|
namespace = module.__dict__.copy()
|
||||||
self.crust = crust.Crust(parent=self.notebook, intro=intro, locals=namespace)
|
self.crust = crust.Crust(parent=self.notebook, intro=intro, locals=namespace)
|
||||||
|
|||||||
Reference in New Issue
Block a user