Changeset 9794
- Timestamp:
- 10/14/08 00:05:58
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gnuradio/trunk/grc/src/grc_gnuradio/wxgui/callback_controls.py
r9793 r9794 264 264 label_text_sizer.Add(obj, 0, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL) 265 265 self.Add(label_text_sizer, 0, wx.ALIGN_CENTER) 266 # set the value,detect string mode266 #detect string mode 267 267 self._string_mode = isinstance(value, str) 268 self.text_box.SetValue(str(value))269 268 270 269 def get_value(self): … … 281 280 Do not evaluate the text box value in string mode. 282 281 """ 283 if self._string_mode: self._value = self.text_box.GetValue() 282 if self._string_mode: 283 self._value = str(self.text_box.GetValue()) 284 284 else: 285 285 try: self._value = eval(self.text_box.GetValue())
