Skip to content

Commit

Permalink
get rid of extra aliases in imgui.core namespace (closes #65)
Browse files Browse the repository at this point in the history
  • Loading branch information
swistakm committed Apr 16, 2019
1 parent 04dd780 commit 97de4ac
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions imgui/__init__.py
Expand Up @@ -405,24 +405,3 @@
#: active, if you want to provide your own undo/redo stack you need
#: e.g. to call clear_active_id().
INPUT_TEXT_NO_UNDO_REDO = core.INPUT_TEXT_NO_UNDO_REDO


# extra aliases for backwards compatibility
def _core_to_extra_deprecated(fn):
return _compat.deprecated("""
The imgui.core.{0}() is deprecated
and will be removed in 1.0.0 version of pyimgui.
Please use imgui.extra.{0}()
or imgui.{0}() instead.
""".format(fn.__name__)
)(fn)


core.font = _core_to_extra_deprecated(extra.font)
core.styled = _core_to_extra_deprecated(extra.styled)
core.istyled = _core_to_extra_deprecated(extra.istyled)
core.vertex_buffer_vertex_pos_offset = _core_to_extra_deprecated(extra.vertex_buffer_vertex_pos_offset) # noqa
core.vertex_buffer_vertex_uv_offset = _core_to_extra_deprecated(extra.vertex_buffer_vertex_uv_offset) # noqa
core.vertex_buffer_vertex_col_offset = _core_to_extra_deprecated(extra.vertex_buffer_vertex_col_offset) # noqa
core.vertex_buffer_vertex_size = _core_to_extra_deprecated(extra.vertex_buffer_vertex_size) # noqa
core.index_buffer_index_size = _core_to_extra_deprecated(extra.index_buffer_index_size) # noqa

0 comments on commit 97de4ac

Please sign in to comment.