You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@hoffstadt@Pcothren
I refered to documentation here, but fail to understand use of app_data kwarg. I looked in demo.py and what I assume is that app_data only provides the value of the sender. But in that case I can just extract that info from sender itself i.e. using dpg.get_value(sender) and there will be no need for app_data kwarg.
Look at below code. I assume that this assert will never fail ... is my assumptions valid ???
I feel that there is more to app_data than what I think in that case please explain or provide refrences. Thanks in advance :)
defcallback_fn(sender, app_data, user_data):
assertdpg.get_value(sender) ==app_data, "I assume that this assert will never fail"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
@hoffstadt @Pcothren
I refered to documentation here, but fail to understand use of
app_data
kwarg. I looked indemo.py
and what I assume is thatapp_data
only provides the value of thesender
. But in that case I can just extract that info fromsender
itself i.e. usingdpg.get_value(sender)
and there will be no need forapp_data
kwarg.Look at below code. I assume that this assert will never fail ... is my assumptions valid ???
I feel that there is more to
app_data
than what I think in that case please explain or provide refrences. Thanks in advance :)Beta Was this translation helpful? Give feedback.
All reactions