seantronsen / pvt

GNU General Public License v3.0
0 stars 0 forks source link

Design: Consider elimating the initial data argument from the display panes #19

Closed seantrons closed 6 months ago

seantrons commented 6 months ago

Even though the mandatory specification of both data and the callback has been removed in favor of allowing either to exist standalone, users could just write dummy callbacks for static viewers. Additionally, for the cases where they want a set of default arguments to be applied on the first render, such arguments could be specified as the initial values for the control widgets.

In just about all ways, this would simplify the existing interface.

ip_gt = ImagePane(callback=make_gauss_template)
ip_gtm = ImagePane(data=callback_tm_gauss(128), callback_tm_gauss)
seantrons commented 6 months ago

Changes enacted in: https://github.com/seantronsen/qtviewer/commit/d865b06ecb8e1fe81dd87436d8ef8746de9c66fb

closing.