471,123 Members | 914 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,123 software developers and data experts.

Question about updating in a GUI


I have a GUI which does some visualization based on VTK and Tkinter.

The problem I have is kinda complicated to describe, but here is a
sketch of it: I have a basic Observer pattern in place for events
(such as the change current 2D slice visualized) and it generally
works well.

However, I just tried inserting a new mode in my GUI, which triggers
an update in the above interface. In general, modes react to these
event changes by refreshing the data, so the code is really
straightforward. However, for this specific mode, I need some
persistent data. So I need to tell my Callback to keep the data and
not refresh it, as is usually the case.

I tried to set a flag that would be set during this operation (my
application is not multi-threaded and I took a chance), but the
updates in the renderer in VTK are not synchronous, so the flag gets
cleared before all the updates occured, so my data still gets flushed

Any suggestions on how I should be approaching this?

Gheorghe Postelnicu, PhD
MGH, Harvard Medical School
Feb 21 '07 #1
0 663

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Eric Williams | last post: by
3 posts views Thread by Test Person | last post: by
16 posts views Thread by akej via SQLMonster.com | last post: by
1 post views Thread by Natalia DeBow | last post: by
3 posts views Thread by Patrick.O.Ige | last post: by
4 posts views Thread by JJ | last post: by
7 posts views Thread by JJ | last post: by
5 posts views Thread by temp2 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.