Skip to content

Commit

Permalink
Merge pull request enthought#102 from enthought/fix/import-ui_editor
Browse files Browse the repository at this point in the history
Fix import in example.
  • Loading branch information
Pietro Berkes committed Mar 9, 2013
2 parents 53faa74 + 4cbc508 commit afea2be
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions examples/demo/Advanced/String_list_ui_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,17 @@

#-- Imports ------------------------------------------------------------------

from traits.api \
import HasPrivateTraits, List, Str, Property, on_trait_change
from traits.api import HasPrivateTraits, List, Str, Property, on_trait_change

from traitsui.api \
import View, HGroup, Item, TabularEditor
from traitsui.api import View, HGroup, Item, TabularEditor
from traitsui.tabular_adapter import TabularAdapter
from traitsui.basic_editor_factory import BasicEditorFactory

from traitsui.tabular_adapter \
import TabularAdapter

from traitsui.ui_editor \
import UIEditor

from traitsui.basic_editor_factory \
import BasicEditorFactory
from traits.etsconfig.api import ETSConfig
if ETSConfig.toolkit == 'wx':
from traitsui.wx.ui_editor import UIEditor
else:
from traitsui.qt4.ui_editor import UIEditor

#-- Define the reusable StringListEditor class and its helper classes --------

Expand Down

0 comments on commit afea2be

Please sign in to comment.