Commit 597575d6dac4d963943e48135ce69ab193911715
1 parent
f8e49287
Exists in
master
and in
6 other branches
ENH: Viewer slice WW/WL text (#145)
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
invesalius/data/viewer_slice.py
@@ -221,6 +221,7 @@ class Viewer(wx.Panel): | @@ -221,6 +221,7 @@ class Viewer(wx.Panel): | ||
221 | self.on_wl = False | 221 | self.on_wl = False |
222 | self.wl_text.Hide() | 222 | self.wl_text.Hide() |
223 | 223 | ||
224 | + | ||
224 | self.__set_editor_cursor_visibility(0) | 225 | self.__set_editor_cursor_visibility(0) |
225 | 226 | ||
226 | 227 | ||
@@ -426,7 +427,7 @@ class Viewer(wx.Panel): | @@ -426,7 +427,7 @@ class Viewer(wx.Panel): | ||
426 | colour = const.ORIENTATION_COLOUR[self.orientation] | 427 | colour = const.ORIENTATION_COLOUR[self.orientation] |
427 | 428 | ||
428 | # Window & Level text | 429 | # Window & Level text |
429 | - self.wl_text = vtku.TextZero() | 430 | + self.wl_text = vtku.Text() |
430 | self.SetWLText(proj.level, proj.window) | 431 | self.SetWLText(proj.level, proj.window) |
431 | 432 | ||
432 | 433 |