[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r11159 - in gnuradio/branches/developers/jblum/wxgui/g
From: |
jblum |
Subject: |
[Commit-gnuradio] r11159 - in gnuradio/branches/developers/jblum/wxgui/gr-wxgui/src/python: . forms |
Date: |
Wed, 27 May 2009 23:18:22 -0600 (MDT) |
Author: jblum
Date: 2009-05-27 23:18:22 -0600 (Wed, 27 May 2009)
New Revision: 11159
Modified:
gnuradio/branches/developers/jblum/wxgui/gr-wxgui/src/python/forms/forms.py
gnuradio/branches/developers/jblum/wxgui/gr-wxgui/src/python/number_window.py
Log:
make use of ShowItems already present in the sizer
Modified:
gnuradio/branches/developers/jblum/wxgui/gr-wxgui/src/python/forms/forms.py
===================================================================
--- gnuradio/branches/developers/jblum/wxgui/gr-wxgui/src/python/forms/forms.py
2009-05-28 04:56:16 UTC (rev 11158)
+++ gnuradio/branches/developers/jblum/wxgui/gr-wxgui/src/python/forms/forms.py
2009-05-28 05:18:22 UTC (rev 11159)
@@ -321,11 +321,6 @@
def _update(self, value): self._gauge.SetValue(value)
- def Hide(self, hide=True): self.Show(not hide)
- def Show(self, show=True):
- if show: self._gauge.Show()
- else: self._gauge.Hide()
-
########################################################################
# Check Box Form
########################################################################
Modified:
gnuradio/branches/developers/jblum/wxgui/gr-wxgui/src/python/number_window.py
===================================================================
---
gnuradio/branches/developers/jblum/wxgui/gr-wxgui/src/python/number_window.py
2009-05-28 04:56:16 UTC (rev 11158)
+++
gnuradio/branches/developers/jblum/wxgui/gr-wxgui/src/python/number_window.py
2009-05-28 05:18:22 UTC (rev 11159)
@@ -176,10 +176,8 @@
If this is real, never show the imaginary gauge.
@param show_gauge true to show
"""
- if show_gauge: self.gauge_real.Show()
- else: self.gauge_real.Hide()
- if show_gauge and not self.real: self.gauge_imag.Show()
- else: self.gauge_imag.Hide()
+ self.gauge_real.ShowItems(show_gauge)
+ self.gauge_imag.ShowItems(show_gauge and not self.real)
def handle_msg(self, msg):
"""
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r11159 - in gnuradio/branches/developers/jblum/wxgui/gr-wxgui/src/python: . forms,
jblum <=