Snake-case aliases for BufferViewer

Add snake_case aliases for BufferViewer
This commit is contained in:
wezu 2019-06-16 12:01:54 +02:00 committed by GitHub
parent 6a0be374c8
commit 617f3f7c7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -442,3 +442,21 @@ class BufferViewer(DirectObject):
cards[index] = placer
return Task.cont
# Snake-case aliases, for people who prefer these.
advance_card = advanceCard
analyze_texture_set = analyzeTextureSet
is_enabled = isEnabled
is_valid_texture_set = isValidTextureSet
maintain_readout = maintainReadout
make_frame = makeFrame
refresh_readout = refreshReadout
select_card = selectCard
set_card_size = setCardSize
set_exclude = setExclude
set_include = setInclude
set_layout = setLayout
set_position = setPosition
set_render_parent = setRenderParent
set_sort = setSort
toggle_enable = toggleEnable