sharppy / SHARPpy

Sounding/Hodograph Analysis and Research Program in Python
https://sharppy.github.io/SHARPpy/index.html
Other
219 stars 112 forks source link

Updates to how profiles are updated #25

Closed keltonhalbert closed 9 years ago

keltonhalbert commented 9 years ago

The main changes are to how individual widgets get updated in the main skew window. Previously, it would destruct and reconstruct a new widget when new data was called. Obviously this is poor programming practice. Each widget now has a setProf function that will set the instance variables to the new data, clear the frame, redraw the data, and call self.update. It is not necessary to call self.update after calling setProf for this very reason.

Other changes came as a result of this. The way the main skewT window handles updating widgets, calling the dendritic growth zone, and how the hodograph draws were all tweaked in some manner, but should not change overall functionality.