Commit 1a0875bc77195a418957a14a75ee2135413522ae
1 parent
874717c3
Exists in
master
and in
68 other branches
FIX: Update text, change window and level
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
invesalius/data/viewer_slice.py
... | ... | @@ -330,7 +330,8 @@ class Viewer(wx.Panel): |
330 | 330 | const.WINDOW_LEVEL['Manual'] = (self.acum_achange_window,\ |
331 | 331 | self.acum_achange_level) |
332 | 332 | ps.Publisher().sendMessage('Check window and level other') |
333 | - | |
333 | + ps.Publisher().sendMessage('Update window level value',(self.acum_achange_window, | |
334 | + self.acum_achange_level)) | |
334 | 335 | #Necessary update the slice plane in the volume case exists |
335 | 336 | ps.Publisher().sendMessage('Render volume viewer') |
336 | 337 | |
... | ... | @@ -343,6 +344,7 @@ class Viewer(wx.Panel): |
343 | 344 | def UpdateWindowLevelValue(self, pubsub_evt): |
344 | 345 | window, level = pubsub_evt.data |
345 | 346 | self.acum_achange_window, self.acum_achange_level = (window, level) |
347 | + self.SetWLText(window, level) | |
346 | 348 | |
347 | 349 | |
348 | 350 | def OnChangeSliceMove(self, evt, obj): | ... | ... |