switcher: refactor and polish
commit43e7c81c389fbcb6085bbe244d9105bd6ebb65ac
authorDavid Aguilar <davvid@gmail.com>
Fri, 20 Jan 2023 07:30:43 +0000 (19 23:30 -0800)
committerDavid Aguilar <davvid@gmail.com>
Fri, 20 Jan 2023 07:30:43 +0000 (19 23:30 -0800)
tree5064e2abace1f8993e7959ff131818cabdf8b108
parent8fbf8d31ceb2341db572f9f61e7259401d1b9796
switcher: refactor and polish

Do initialization during construction instead of inside of the
resizeEvent().

Use the show()/ hide() methods.

Use accept() when accepted and close() when aborted.

Reuse filter_input_changed() from the parent class.

Related-to: #1282
Signed-off-by: David Aguilar <davvid@gmail.com>
cola/widgets/switcher.py